]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/nouveau: dispnv50: fix missing-prototypes warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Apr 2023 21:03:23 +0000 (23:03 +0200)
committerKarol Herbst <kherbst@redhat.com>
Mon, 22 May 2023 14:39:04 +0000 (16:39 +0200)
nv50_display_create() is declared in another header, along with
a couple of declarations that are now outdated:

drivers/gpu/drm/nouveau/dispnv50/disp.c:2517:1: error: no previous prototype for 'nv50_display_create'

Fixes: ba801ef068c1 ("drm/nouveau/kms: display destroy/init/fini hooks can be static")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230417210329.2469722-1-arnd@kernel.org
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/nv50_display.h

index 5bb777ff13130853e9742fefb4e58a44f97356a5..9b6824f6b9e4b0ecbb40dcaf5e65476beffd5117 100644 (file)
@@ -64,6 +64,7 @@
 #include "nouveau_connector.h"
 #include "nouveau_encoder.h"
 #include "nouveau_fence.h"
+#include "nv50_display.h"
 
 #include <subdev/bios/dp.h>
 
index fbd3b15583bc844c873b7025573361f1e667c962..60f77766766e96f2fdf14fb144033f19f466133c 100644 (file)
@@ -31,7 +31,5 @@
 #include "nouveau_reg.h"
 
 int  nv50_display_create(struct drm_device *);
-void nv50_display_destroy(struct drm_device *);
-int  nv50_display_init(struct drm_device *);
-void nv50_display_fini(struct drm_device *);
+
 #endif /* __NV50_DISPLAY_H__ */