From patchwork Sun Sep 25 07:11:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76945 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp619359qgf; Sun, 25 Sep 2016 00:11:39 -0700 (PDT) X-Received: by 10.98.156.193 with SMTP id u62mr27272436pfk.57.1474787499856; Sun, 25 Sep 2016 00:11:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bw5si7153557pab.187.2016.09.25.00.11.39; Sun, 25 Sep 2016 00:11:39 -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 S938613AbcIYHLf (ORCPT + 27 others); Sun, 25 Sep 2016 03:11:35 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:34390 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789AbcIYHLe (ORCPT ); Sun, 25 Sep 2016 03:11:34 -0400 Received: by mail-pf0-f180.google.com with SMTP id l25so6971601pfb.1 for ; Sun, 25 Sep 2016 00:11:33 -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=3/zz0r5R+pvgMbrVSpf/i+TFYdV2TpEIwb2w3wGlcH0=; b=CfETrl0i5D/oQ+TDOfAYXoLl2tRmAuZTh6lRpu9yp0EV4wbDkhA7LSLs1yzu84X7/g L5LXXJbWgZyyb5WvwZ3zj84ug5pg+nkecPbNH6tDNgp5NiSaF9fSejONsl8q1hhFOBsO 5/7bfJrp30t9Rbr6/Tptrvv8iYfKVMeFhvyvs= 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=3/zz0r5R+pvgMbrVSpf/i+TFYdV2TpEIwb2w3wGlcH0=; b=amuTQJ7VDc0mT+aNxQryhkciPKv0QeyH3ca/dXk4BNZX9IvEgF6tOy1fsMAnL4h0Q7 0WRqVBFw4bYZUtib3lWx8K0D3Q95l5tMxjJei0ZhkZF+ecM3YRKBDh16R2YJMr1vMmzz 0RKtdcp+ls1P0oixMstJAgeZGPEMGOYy0C31OKQ1intsqQgtoJTJ4FO96yuUgM7dY5cR /s6GyjabeOZEABtRXSAS9XPcv6uxcAdXvjphIwWcwuvzMdLidg0Yl0eRZI59t1fuvvGL kcsM7RRgCdKaqYRFD6EUR1mRrfkM0IP9c8wVe6DAkqMBNodolv60hfxH+/fypRMUjGzo xCBQ== X-Gm-Message-State: AE9vXwOhib9/0kF8qlV5vFacwQ8D5GkCkVVk6cX1wlWRY51rlxegpcwuCW9ngoq7EyE0o+Gb X-Received: by 10.98.112.197 with SMTP id l188mr26916738pfc.151.1474787493320; Sun, 25 Sep 2016 00:11:33 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id p189sm18718454pfb.5.2016.09.25.00.11.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:11:32 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie, acourbot@nvidia.com, imirkin@alum.mit.edu, Julia.Lawall@lip6.fr, martin.peres@free.fr, rspliet@eclipso.eu, nouveau@karolherbst.de Cc: dri-devel@lists.freedesktop.org, nouveau@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/3] drm/nouveau: add missing header dependencies Date: Sun, 25 Sep 2016 15:11:14 +0800 Message-Id: <1474787474-747-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 a few warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c:60:1: warning: no previous prototype for 'nvkm_sddr2_calc' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c:69:1: warning: no previous prototype for 'nvkm_sddr3_calc' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c:35:1: warning: no previous prototype for 'nvkm_voltgpio_get' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c:54:1: warning: no previous prototype for 'nvkm_voltgpio_set' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c:71:1: warning: no previous prototype for 'nvkm_voltgpio_init' [-Wmissing-prototypes] .... In fact, these functions are declared in drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.h, drivers/gpu/drm/nouveau/nvkm/subdev/volt/priv.h, drivers/gpu/drm/nouveau/nvkm/core/firmware.h, drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.h, drivers/gpu/drm/nouveau/dispnv04/disp.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 1 + drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 1 + drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c | 1 + 6 files changed, 6 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/dispnv04/overlay.c b/drivers/gpu/drm/nouveau/dispnv04/overlay.c index ec444ea..b756383 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/overlay.c +++ b/drivers/gpu/drm/nouveau/dispnv04/overlay.c @@ -33,6 +33,7 @@ #include "nouveau_connector.h" #include "nouveau_display.h" #include "nvreg.h" +#include "disp.h" struct nouveau_plane { diff --git a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c index 34ecd4a..058ff46 100644 --- a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c +++ b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c @@ -20,6 +20,7 @@ * DEALINGS IN THE SOFTWARE. */ #include +#include /** * nvkm_firmware_get - load firmware from the official nvidia/chip/ directory diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c index 1e13278..c8bb919 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c @@ -106,6 +106,7 @@ #define CP_SEEK_2 0x00c800ff #include "ctxnv40.h" +#include "nv50.h" #include diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c index b9f1ffd..4dcd874 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c @@ -23,6 +23,7 @@ * Ben Skeggs */ #include "priv.h" +#include "ram.h" struct ramxlat { int id; diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c index 2690033..eca8a44 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c @@ -23,6 +23,7 @@ * Roy Spliet */ #include "priv.h" +#include "ram.h" struct ramxlat { int id; diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c index d2bac1d..443c031 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c @@ -25,6 +25,7 @@ #include #include #include +#include "priv.h" static const u8 tags[] = { DCB_GPIO_VID0, DCB_GPIO_VID1, DCB_GPIO_VID2, DCB_GPIO_VID3,