From patchwork Thu Sep 8 10:59:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75765 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp778332qgf; Thu, 8 Sep 2016 03:59:48 -0700 (PDT) X-Received: by 10.98.111.133 with SMTP id k127mr90445017pfc.90.1473332388113; Thu, 08 Sep 2016 03:59:48 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si46619281pay.18.2016.09.08.03.59.47; Thu, 08 Sep 2016 03:59:48 -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 S1758373AbcIHK7p (ORCPT + 27 others); Thu, 8 Sep 2016 06:59:45 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36805 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757334AbcIHK7o (ORCPT ); Thu, 8 Sep 2016 06:59:44 -0400 Received: by mail-pa0-f46.google.com with SMTP id id6so16430799pad.3 for ; Thu, 08 Sep 2016 03:59:43 -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=cQUmVlseGmky88VQFnkVPKE9RszaTF27tAT8xntglHo=; b=CJfnaNbnGrHTs9020ukXIJBWyHFiYUzKjTBFLtjef2yK3uJoEgDTLeLk14mLos2N2T oere62twJVswv3AxYKrDtwypc8RWD6UjmvN7vUDbFuBDD0vw5pL+VUt3OD9laGstmrSa hZSSduvHDrAGSPQUQgidx7hFpfnbfp8YbQ5hE= 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=cQUmVlseGmky88VQFnkVPKE9RszaTF27tAT8xntglHo=; b=LL+CdvxOq9k7Cce9qrm04gcAOmKZYQoyOLre2Ma8XyrYCntefjv0VMTeLqvv+69ovV Aoad2NtgnKCH5DQ+FtjDWOpl2g9zrnfP1DGnDpRrjrnV6Udqvdl7IYEvZmYnYKnBqqSA XZltCbydcrykREiIRK9ZG2/Zvloaod+zJBDHMnyb+kij2tE0AxIjlsJJbNNz+llloPbC znGsTiDd692stjnwWUD07V2nFqanCRzXaK+QY4f7H8DVxJqG/eOPdo58mLS5XEc6g4RV flJ59/SrCBeEpEdGKlR9h5p1qDFXYUUhoLPXCpe3cdZ0wLn+dDBTjMVmzOhiWcqAgfjm dYzQ== X-Gm-Message-State: AE9vXwO0wK/hCkCa/WXM73YxFor460NJT7fmxnhAwk+6Ea9M1q/fQNf/QdPFIVjlGeTPnsdc X-Received: by 10.66.72.69 with SMTP id b5mr26516856pav.98.1473332383265; Thu, 08 Sep 2016 03:59:43 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.33]) by smtp.gmail.com with ESMTPSA id q8sm46640009pac.32.2016.09.08.03.59.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Sep 2016 03:59:42 -0700 (PDT) From: Baoyou Xie To: maxime.ripard@free-electrons.com, airlied@linux.ie, wens@csie.org Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/sun4i: add missing header dependencies Date: Thu, 8 Sep 2016 18:59:22 +0800 Message-Id: <1473332362-25497-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 5 warnings when building kernel with W=1: drivers/gpu/drm/sun4i/sun4i_framebuffer.c:33:23: warning: no previous prototype for 'sun4i_framebuffer_init' [-Wmissing-prototypes] drivers/gpu/drm/sun4i/sun4i_framebuffer.c:47:6: warning: no previous prototype for 'sun4i_framebuffer_free' [-Wmissing-prototypes] drivers/gpu/drm/sun4i/sun4i_rgb.c:202:5: warning: no previous prototype for 'sun4i_rgb_init' [-Wmissing-prototypes] drivers/gpu/drm/sun4i/sun4i_dotclock.c:151:5: warning: no previous prototype for 'sun4i_dclk_create' [-Wmissing-prototypes] drivers/gpu/drm/sun4i/sun4i_dotclock.c:186:5: warning: no previous prototype for 'sun4i_dclk_free' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/sun4i/sun4i_framebuffer.h, drivers/gpu/drm/sun4i/sun4i_rgb.h, drivers/gpu/drm/sun4i/sun4i_dotclock.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 1 + drivers/gpu/drm/sun4i/sun4i_framebuffer.c | 1 + drivers/gpu/drm/sun4i/sun4i_rgb.c | 1 + 3 files changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/sun4i/sun4i_dotclock.c b/drivers/gpu/drm/sun4i/sun4i_dotclock.c index 5b34631..4332da4 100644 --- a/drivers/gpu/drm/sun4i/sun4i_dotclock.c +++ b/drivers/gpu/drm/sun4i/sun4i_dotclock.c @@ -14,6 +14,7 @@ #include #include "sun4i_tcon.h" +#include "sun4i_dotclock.h" struct sun4i_dclk { struct clk_hw hw; diff --git a/drivers/gpu/drm/sun4i/sun4i_framebuffer.c b/drivers/gpu/drm/sun4i/sun4i_framebuffer.c index 70688fe..8b6ce619 100644 --- a/drivers/gpu/drm/sun4i/sun4i_framebuffer.c +++ b/drivers/gpu/drm/sun4i/sun4i_framebuffer.c @@ -15,6 +15,7 @@ #include #include "sun4i_drv.h" +#include "sun4i_framebuffer.h" static void sun4i_de_output_poll_changed(struct drm_device *drm) { diff --git a/drivers/gpu/drm/sun4i/sun4i_rgb.c b/drivers/gpu/drm/sun4i/sun4i_rgb.c index f5bbac6..3d11c48 100644 --- a/drivers/gpu/drm/sun4i/sun4i_rgb.c +++ b/drivers/gpu/drm/sun4i/sun4i_rgb.c @@ -19,6 +19,7 @@ #include "sun4i_drv.h" #include "sun4i_tcon.h" +#include "sun4i_rgb.h" struct sun4i_rgb { struct drm_connector connector;