From patchwork Wed Sep 7 10:53:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9318939 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D9EE2601C0 for ; Wed, 7 Sep 2016 10:55:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C40092879C for ; Wed, 7 Sep 2016 10:55:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3FD628FE1; Wed, 7 Sep 2016 10:55:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 49FE62879C for ; Wed, 7 Sep 2016 10:55:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhaUA-0002jq-VD; Wed, 07 Sep 2016 10:53:43 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhaU0-0002eg-My for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2016 10:53:34 +0000 Received: by mail-pa0-x232.google.com with SMTP id id6so5357980pad.3 for ; Wed, 07 Sep 2016 03:53:12 -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=KuZRc8ruXOipbrn/hyrmwnB10U3jav+Go3m/AgPMwy8=; b=e7cBW8E330SlRoStEsBpGXM0WS+tVkB/8G3/PMW7n4ekt518SqH17hweygL8OaHgc3 1+i7/gIwqDvADyBisKjr4zp9X80D9ca2I/vTsJghL1aP0wmTWxxlV4mxT9rBvfX9/3pf wSk07rf56ROsazIyq8daAvtU+HqUhxIq5Lcbw= 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=KuZRc8ruXOipbrn/hyrmwnB10U3jav+Go3m/AgPMwy8=; b=T36sum8ImgiR+qnRGj6FOVIhM3Ll+I+e46pskmDoTKH8LMWdOfAgY3bhc2roUHDOrx cOtM+giMoKCuWVdCGgTEkFZ9k0HvPHGajccFYhyo2McL52baN1Q6dsnCwQaFZiiyj66P 1nDNAuKB2VV9hFHEdiGlIX2b6i7r2ExI6DrXcnUZ5k1XsqqdC9uYhBq+UztKUQ8AKMHY h7qHG9nu/aGWxRWn/mdTMyO8sZjNtwBrF/kvcN5NT1ZziHMFoChat2wlqqs6AA5VpGLX 1P915V5/5e3EVTkL1ekKcMkP1e2PgJUdgWShyYMDtbIaYkEMErpy+cmZ2Q8gztw+XJEm 8ylw== X-Gm-Message-State: AE9vXwMdAwBtjVeZkibRcv6RwxMiYNgNmDB7ijHJdbvWOcB5LDYARaWKPKcUe5Gst+r5kuXS X-Received: by 10.66.120.11 with SMTP id ky11mr34721997pab.79.1473245591708; Wed, 07 Sep 2016 03:53:11 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.64]) by smtp.gmail.com with ESMTPSA id v29sm8851756pfd.65.2016.09.07.03.53.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 03:53:11 -0700 (PDT) From: Baoyou Xie To: mark.yao@rock-chips.com, airlied@linux.ie, heiko@sntech.de Subject: [PATCH] drm/rockchip: add missing header dependencies Date: Wed, 7 Sep 2016 18:53:00 +0800 Message-Id: <1473245580-538-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160907_035332_868138_C574D378 X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, xie.baoyou@zte.com.cn, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, baoyou.xie@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We get 2 warnings when building kernel with W=1: drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c:130:5: warning: no previous prototype for 'rockchip_drm_fbdev_init' [-Wmissing-prototypes] drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c:173:6: warning: no previous prototype for 'rockchip_drm_fbdev_fini' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c index 207e01d..a16c69f 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c @@ -20,6 +20,7 @@ #include "rockchip_drm_drv.h" #include "rockchip_drm_gem.h" #include "rockchip_drm_fb.h" +#include "rockchip_drm_fbdev.h" #define PREFERRED_BPP 32 #define to_drm_private(x) \