Skip to content

Commit 504e72e

Browse files
arndbkarolherbst
authored andcommitted
drm/nouveau: dispnv50: fix missing-prototypes warning
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: ba801ef ("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
1 parent 74629c4 commit 504e72e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/gpu/drm/nouveau/dispnv50/disp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
#include "nouveau_connector.h"
6565
#include "nouveau_encoder.h"
6666
#include "nouveau_fence.h"
67+
#include "nv50_display.h"
6768

6869
#include <subdev/bios/dp.h>
6970

drivers/gpu/drm/nouveau/nv50_display.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,5 @@
3131
#include "nouveau_reg.h"
3232

3333
int nv50_display_create(struct drm_device *);
34-
void nv50_display_destroy(struct drm_device *);
35-
int nv50_display_init(struct drm_device *);
36-
void nv50_display_fini(struct drm_device *);
34+
3735
#endif /* __NV50_DISPLAY_H__ */

0 commit comments

Comments
 (0)