From patchwork Sun Sep 25 07:38:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76954 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp626972qgf; Sun, 25 Sep 2016 00:38:49 -0700 (PDT) X-Received: by 10.66.100.225 with SMTP id fb1mr27634767pab.4.1474789129283; Sun, 25 Sep 2016 00:38:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si9638898pfn.77.2016.09.25.00.38.49; Sun, 25 Sep 2016 00:38:49 -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 S1034150AbcIYHiq (ORCPT + 27 others); Sun, 25 Sep 2016 03:38:46 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:35188 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031643AbcIYHio (ORCPT ); Sun, 25 Sep 2016 03:38:44 -0400 Received: by mail-pf0-f173.google.com with SMTP id s13so20850475pfd.2 for ; Sun, 25 Sep 2016 00:38:44 -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=GY7ScXD3StLCu4yD27AjK0JBWwqMRC4y23Xtcy0C28St8BYueS0wiSGMAWV81rcgDF 9kIu/HZqMDkw2S+K0pZIJ/eBdw1M3puluJP9nxEB1x/46gJPdKlq/K5M+z6XhpR6tekh OlRwBarzAWWiDaZoU4bg4OhkDID12gF33fcGk= 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=bMMeW7yUuBtj8J2LY6zD1jhVXxJOp7OI5FhVHyfWkBxJZRaPUlFK1emAjEWaW/16pa aRV0jWLc0YYxecPTMxLTlSzuAiSeHT0NhxfGzq1GQxnD26BeomGeBGyVLECWy/i+OxgL ztP9YvMCQv6DxgbzCOjPMaC6xJPIRboiiThId7k30rAYglpjQ0k8JWS8nkrlG63ABKEo t8B0kHSLXu9zwtXNDPHg4SpUT3nQjzX3R2YKtsQW3m/LE6iYORY11AoLh14+/uqTYpy+ pv+/QPEJZmhMUzq0vnWOZPxOWfAmZ+bm50/Z2IAxfLb9SPFWPXRhh3Qjo2sQgdTwgx/I 3lsA== X-Gm-Message-State: AA6/9RmjR45UWkGdTzdGTddo4d8lRnjJU8Ye5sqRqVWmUt399fu1l4uCOGuyAVBR2tmlFVNd X-Received: by 10.98.51.197 with SMTP id z188mr16988908pfz.22.1474789123631; Sun, 25 Sep 2016 00:38:43 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id c145sm22373978pfb.15.2016.09.25.00.38.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:38:43 -0700 (PDT) From: Baoyou Xie To: ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, matthias.bgg@gmail.com, mark.yao@rock-chips.com, heiko@sntech.de Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.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/rockchip: add missing header dependencies Date: Sun, 25 Sep 2016 15:38:28 +0800 Message-Id: <1474789109-22010-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 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(+) -- 2.7.4 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) \