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: 75625 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp260097qgf; Wed, 7 Sep 2016 03:53:19 -0700 (PDT) X-Received: by 10.66.132.81 with SMTP id os17mr28417977pab.106.1473245599016; Wed, 07 Sep 2016 03:53:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lu15si40639270pab.140.2016.09.07.03.53.18; Wed, 07 Sep 2016 03:53:19 -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 S1755376AbcIGKxQ (ORCPT + 27 others); Wed, 7 Sep 2016 06:53:16 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33407 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751201AbcIGKxM (ORCPT ); Wed, 7 Sep 2016 06:53:12 -0400 Received: by mail-pa0-f42.google.com with SMTP id cm16so5413475pac.0 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=iY0vLjsoVYJcCPQnURQKz/b1KzZDYaz1ZP20sGRElf58hoxi0BdqoN7swcHr5rkTaJ Obk0dfzgqepn6bK2AmOpC8GAwCjBgSKo74MgC8ByPdNIBN7MEA0xflufYoOw1m/YdhBz yuTAWKwfJH1wb16qVEaT7VXDog1gNN2Ll6UQX8Jl3DVib0UBVkfDXSbHhUd7zQeaWQGH aQsCZXKuLHsvhvY5AFzHoZKrHJFR8EZF94ainD1SmT+ioGbDrLbRj3gmaA8wUi5Ms/oL ca4Z9HHx5iompGUP4fuAVQ9Up1VgMECwhhpxnoWEj0tlY7M/jGl6n7ksq6Z85/mLQ0ap lTxQ== X-Gm-Message-State: AE9vXwNQwjTQ5KG5Ibx/I4npgPk2uqtj+jJyiadQsAtaE+lA6VwjpTNBg4gE+6BvNjMh9CN7 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 Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn 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 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) \