From patchwork Sun Sep 25 07:16:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76948 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp621140qgf; Sun, 25 Sep 2016 00:17:09 -0700 (PDT) X-Received: by 10.98.202.17 with SMTP id n17mr27070107pfg.173.1474787829707; Sun, 25 Sep 2016 00:17:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m28si3170226pfk.200.2016.09.25.00.17.09; Sun, 25 Sep 2016 00:17:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034126AbcIYHRG (ORCPT + 27 others); Sun, 25 Sep 2016 03:17:06 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:33339 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033983AbcIYHRF (ORCPT ); Sun, 25 Sep 2016 03:17:05 -0400 Received: by mail-pf0-f179.google.com with SMTP id 21so55139414pfy.0 for ; Sun, 25 Sep 2016 00:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=U8FUmi2wIfj9HnnHfVAYxKU76bJj7dhUpsuOR2BaW6k=; b=TwjSIddw6BWoZKY34T4LK3XUX9cG7LKoZbMIRy+Ra9VAol64TfAlbd6YRAbBcgEFuT W7mLPpFynqWVHmYW5HKO/HnRCXXlvhmfx72e1ojKYXyksSMufAqw9vO6CUxXgxCK2JqN 3KVt+sMXWcfaNMHAOtxfAZID9iXpO4bxry3B4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=U8FUmi2wIfj9HnnHfVAYxKU76bJj7dhUpsuOR2BaW6k=; b=LruxHTCeId+RJK6ZWJhGhQ9UFD2aFjNBfkB/LFeZqJ0oTftDtFZVtNcDE9d03mOcW7 RI3cSb4YQHlvwDeU0nDl5cQtIKMZSTPvFEsX3NvehvippJ4r1TARNFFW103cljSDgxGt uDQKQsZBBqtVrOKR2rUtYI8IL+VGsZzgnE92lCn3ZsgZoCI9Kz6ohvvNg2rfLOspsBO1 0vWEW2BDxc7fWXkhnr3f29fNU3DqFSpC9FY5uwiHesWi4nCNXQBzl8YOTerxloGhLfjf JyVS7hsE1oYc0Khayoq3EU+WeUl9y0dVXEb3VdI51jzx8Rl+5nsfuTQea7EGtrdVFFA0 3cgw== X-Gm-Message-State: AE9vXwNtISK7eVvJBfQ2jsyBBhQQhy6JwpUC+bx9qmcSokNEe9X1mqtjNo7PNY2AbXANAsE1 X-Received: by 10.98.159.194 with SMTP id v63mr27115462pfk.91.1474787824850; Sun, 25 Sep 2016 00:17:04 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id c26sm15078883pfe.20.2016.09.25.00.17.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:17:04 -0700 (PDT) From: Baoyou Xie To: jsarha@ti.com, tomi.valkeinen@ti.com, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 1/2] drm/tilcdc: add missing header dependencies Date: Sun, 25 Sep 2016 15:16:44 +0800 Message-Id: <1474787805-18154-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 4 warnings when building kernel with W=1: drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:397:12: warning: no previous prototype for 'tilcdc_tfp410_init' [-Wmissing-prototypes] drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:402:13: warning: no previous prototype for 'tilcdc_tfp410_fini' [-Wmissing-prototypes] drivers/gpu/drm/tilcdc/tilcdc_panel.c:448:12: warning: no previous prototype for 'tilcdc_panel_init' [-Wmissing-prototypes] drivers/gpu/drm/tilcdc/tilcdc_panel.c:453:13: warning: no previous prototype for 'tilcdc_panel_fini' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/tilcdc/tilcdc_tfp410.h, drivers/gpu/drm/tilcdc/tilcdc_panel.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 + drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 + 2 files changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c index 7b36509..2134bb20 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c @@ -25,6 +25,7 @@ #include #include "tilcdc_drv.h" +#include "tilcdc_panel.h" struct panel_module { struct tilcdc_module base; diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index c6a70da..458043a 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c @@ -23,6 +23,7 @@ #include #include "tilcdc_drv.h" +#include "tilcdc_tfp410.h" struct tfp410_module { struct tilcdc_module base;