summaryrefslogtreecommitdiff
path: root/drm/nouveau/nvkm/subdev
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-10-24 11:09:02 +0800
committerBen Skeggs <bskeggs@redhat.com>2016-11-07 10:06:19 +1000
commit443d10110d803f1d7d33dafa2f70e3e3cfe1dba7 (patch)
tree91f3312f12ffc7d4129f4eab88615c208811e295 /drm/nouveau/nvkm/subdev
parentc44f9a4cfd5ace2910fa0f4ddcab88684accccfc (diff)
downloadnouveau-443d10110d803f1d7d33dafa2f70e3e3cfe1dba7.tar.gz
add missing header dependencies
We get a few warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/core/firmware.c:34:1: warning: no previous prototype for 'nvkm_firmware_get' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/core/firmware.c:58:1: warning: no previous prototype for 'nvkm_firmware_put' [-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/fb/sddr2.c:60:1: warning: no previous prototype for 'nvkm_sddr2_calc' [-Wmissing-prototypes] .... In fact, these functions are declared in drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.h drivers/gpu/drm/nouveau/nvkm/subdev/volt/priv.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 <baoyou.xie@linaro.org> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nvkm/subdev')
-rw-r--r--drm/nouveau/nvkm/subdev/fb/sddr2.c1
-rw-r--r--drm/nouveau/nvkm/subdev/fb/sddr3.c1
-rw-r--r--drm/nouveau/nvkm/subdev/volt/gpio.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/drm/nouveau/nvkm/subdev/fb/sddr2.c b/drm/nouveau/nvkm/subdev/fb/sddr2.c
index b9f1ffdfc..4dcd8742f 100644
--- a/drm/nouveau/nvkm/subdev/fb/sddr2.c
+++ b/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/drm/nouveau/nvkm/subdev/fb/sddr3.c b/drm/nouveau/nvkm/subdev/fb/sddr3.c
index 26900333b..eca8a445e 100644
--- a/drm/nouveau/nvkm/subdev/fb/sddr3.c
+++ b/drm/nouveau/nvkm/subdev/fb/sddr3.c
@@ -23,6 +23,7 @@
* Roy Spliet <rspliet@eclipso.eu>
*/
#include "priv.h"
+#include "ram.h"
struct ramxlat {
int id;
diff --git a/drm/nouveau/nvkm/subdev/volt/gpio.c b/drm/nouveau/nvkm/subdev/volt/gpio.c
index d2bac1d77..443c031b9 100644
--- a/drm/nouveau/nvkm/subdev/volt/gpio.c
+++ b/drm/nouveau/nvkm/subdev/volt/gpio.c
@@ -25,6 +25,7 @@
#include <subdev/bios.h>
#include <subdev/bios/gpio.h>
#include <subdev/gpio.h>
+#include "priv.h"
static const u8 tags[] = {
DCB_GPIO_VID0, DCB_GPIO_VID1, DCB_GPIO_VID2, DCB_GPIO_VID3,