Skip to content

Commit 3638a82

Browse files
Jiri Slaby (SUSE)karolherbst
authored andcommitted
drm/nouveau/kms/nv50: fix nv50_wndw_new_ prototype
gcc-13 warns about mismatching types for enums. That revealed switched arguments of nv50_wndw_new_(): drivers/gpu/drm/nouveau/dispnv50/wndw.c:696:1: error: conflicting types for 'nv50_wndw_new_' due to enum/integer mismatch; have 'int(const struct nv50_wndw_func *, struct drm_device *, enum drm_plane_type, const char *, int, const u32 *, u32, enum nv50_disp_interlock_type, u32, struct nv50_wndw **)' drivers/gpu/drm/nouveau/dispnv50/wndw.h:36:5: note: previous declaration of 'nv50_wndw_new_' with type 'int(const struct nv50_wndw_func *, struct drm_device *, enum drm_plane_type, const char *, int, const u32 *, enum nv50_disp_interlock_type, u32, u32, struct nv50_wndw **)' It can be barely visible, but the declaration says about the parameters in the middle: enum nv50_disp_interlock_type, u32 interlock_data, u32 heads, While the definition states differently: u32 heads, enum nv50_disp_interlock_type interlock_type, u32 interlock_data, Unify/fix the declaration to match the definition. Fixes: 53e0a3e ("drm/nouveau/kms/nv50-: simplify tracking of channel interlocks") Cc: Martin Liska <[email protected]> Cc: Ben Skeggs <[email protected]> Cc: Karol Herbst <[email protected]> Cc: Lyude Paul <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Signed-off-by: Karol Herbst <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7245e62 commit 3638a82

File tree

1 file changed

+3
-2
lines changed
  • drivers/gpu/drm/nouveau/dispnv50

1 file changed

+3
-2
lines changed

drivers/gpu/drm/nouveau/dispnv50/wndw.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ struct nv50_wndw {
3535

3636
int nv50_wndw_new_(const struct nv50_wndw_func *, struct drm_device *,
3737
enum drm_plane_type, const char *name, int index,
38-
const u32 *format, enum nv50_disp_interlock_type,
39-
u32 interlock_data, u32 heads, struct nv50_wndw **);
38+
const u32 *format, u32 heads,
39+
enum nv50_disp_interlock_type, u32 interlock_data,
40+
struct nv50_wndw **);
4041
void nv50_wndw_flush_set(struct nv50_wndw *, u32 *interlock,
4142
struct nv50_wndw_atom *);
4243
void nv50_wndw_flush_clr(struct nv50_wndw *, u32 *interlock, bool flush,

0 commit comments

Comments
 (0)