linux/drivers/gpu/drm/nouveau/dispnv50
Lyude Paul 0059a9081a drm/nouveau/kms/nv50-: Fix CRC-related compile errors with debugfs disabled
Looks like I made the mistake of forgetting to check whether or not this
would build without CONFIG_DEBUG_FS, as the Kbuild bot reported some
issues building with tegra_defconfig:

In file included from drivers/gpu/drm/nouveau/nouveau_display.c:47:
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_head_crc_late_register’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:106:47: error: parameter name
omitted
  106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
      |                                               ^~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h:106:54: warning: no return
statement in function returning non-void [-Wreturn-type]
  106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
      |                                                      ^~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_crc_handle_vblank’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:108:57: warning: ‘return’ with
a value, in function returning void [-Wreturn-type]
  108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
      |                                                         ^
./drivers/gpu/drm/nouveau/dispnv50/crc.h:108:1: note: declared here
  108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
      | ^~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_crc_atomic_check’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:111:23: error: parameter name
omitted
  111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
      |                       ^~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h:111:43: error: parameter name
omitted
  111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h:112:9: error: parameter name
omitted
  112 |         struct nv50_head_atom *) {}
      |         ^~~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h:112:16: warning: no return
statement in function returning non-void [-Wreturn-type]
  112 |         struct nv50_head_atom *) {}
      |                ^~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_crc_atomic_stop_reporting’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:114:32: error: parameter name
omitted
  114 | nv50_crc_atomic_stop_reporting(struct drm_atomic_state *) {}
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_crc_atomic_prepare_notifier_contexts’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:116:43: error: parameter name
omitted
  116 | nv50_crc_atomic_prepare_notifier_contexts(struct drm_atomic_state *) {}
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_crc_atomic_start_reporting’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:118:33: error: parameter name
omitted
  118 | nv50_crc_atomic_start_reporting(struct drm_atomic_state *) {}
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_crc_atomic_set’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:120:21: error: parameter name
omitted
  120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
      |                     ^~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h:120:41: error: parameter name
omitted
  120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/nouveau/dispnv50/crc.h: In function
‘nv50_crc_atomic_clr’:
./drivers/gpu/drm/nouveau/dispnv50/crc.h:122:21: error: parameter name
omitted
  122 | nv50_crc_atomic_clr(struct nv50_head *) {}
      |                     ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_display.c: In function
‘nouveau_framebuffer_new’:
drivers/gpu/drm/nouveau/nouveau_display.c:286:15: warning: variable
‘width’ set but not used [-Wunused-but-set-variable]
  286 |  unsigned int width, height, i;
      |               ^~~~~

So, fix the inline function declarations we use in
drm/drivers/gpu/drm/nouveau/dispnv50/crc.h when CONFIG_DEBUG_FS is
enabled.

Fixes: 12885ecbfe ("drm/nouveau/kms/nvd9-: Add CRC support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2020-07-24 18:51:05 +10:00
..
atom.h drm/nouveau/kms/nvd9-: Add CRC support 2020-07-16 18:16:33 -04:00
base507c.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw update() 2020-07-24 18:51:00 +10:00
base827c.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw image_set() 2020-07-24 18:51:00 +10:00
base907c.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw image_set() 2020-07-24 18:51:00 +10:00
base917c.c drm/nouveau/kms/nv50-: add fp16 scanout support 2019-08-23 12:55:31 +10:00
base.c drm/nouveau/kms/gk104-: add support for [XA]2R10G10B10 formats 2018-05-18 15:01:30 +10:00
base.h drm/nouveau/kms/nv50-: convert wndw update() to new push macros 2020-07-24 18:50:53 +10:00
core507d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core update() 2020-07-24 18:51:01 +10:00
core827d.c drm/nouveau/kms/nv50-: Probe SOR and PIOR caps for DP interlacing support 2020-05-22 11:13:51 +10:00
core907d.c drm/nouveau/kms/nvd9-: Add CRC support 2020-07-16 18:16:33 -04:00
core917d.c drm/nouveau/kms/nvd9-: Add CRC support 2020-07-16 18:16:33 -04:00
core.c drm/nouveau/disp/tu102: rename implementation from tu104 2019-02-20 08:59:58 +10:00
core.h drm/nouveau/kms/nv50-: convert core or_ctrl() to new push macros 2020-07-24 18:50:54 +10:00
corec37d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core wndw_owner() 2020-07-24 18:51:01 +10:00
corec57d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core init() 2020-07-24 18:51:00 +10:00
crc907d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core crc_set_ctx() 2020-07-24 18:51:03 +10:00
crc.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_or() 2020-07-24 18:51:03 +10:00
crc.h drm/nouveau/kms/nv50-: Fix CRC-related compile errors with debugfs disabled 2020-07-24 18:51:05 +10:00
crcc37d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core crc_set_ctx() 2020-07-24 18:51:03 +10:00
curs507a.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wimm update() 2020-07-24 18:50:58 +10:00
curs907a.c drm/nouveau/kms/nv50-: simplify tracking of channel interlocks 2018-05-18 15:01:29 +10:00
curs.c drm/nouveau/disp/tu102: rename implementation from tu104 2019-02-20 08:59:58 +10:00
curs.h drm/nouveau/kms/gv100: initial support 2018-05-18 15:01:46 +10:00
cursc37a.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wimm update() 2020-07-24 18:50:58 +10:00
dac507d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_ctrl() 2020-07-24 18:51:01 +10:00
dac907d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_ctrl() 2020-07-24 18:51:01 +10:00
disp.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_ctrl() 2020-07-24 18:51:01 +10:00
disp.h drm/nouveau/kms/nv50-: implement proper push buffer control logic 2020-07-24 18:50:56 +10:00
handles.h drm/nouveau/kms/nvd9-: Add CRC support 2020-07-16 18:16:33 -04:00
head507d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_procamp() 2020-07-24 18:51:03 +10:00
head827d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_curs_clr() 2020-07-24 18:51:02 +10:00
head907d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_or() 2020-07-24 18:51:03 +10:00
head917d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_dither() 2020-07-24 18:51:03 +10:00
head.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_dither() 2020-07-24 18:51:03 +10:00
head.h drm/nouveau/kms/nv50-: convert core head_or() to new push macros 2020-07-24 18:50:55 +10:00
headc37d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_or() 2020-07-24 18:51:03 +10:00
headc57d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core head_or() 2020-07-24 18:51:03 +10:00
Kbuild drm/nouveau/kms/nvd9-: Add CRC support 2020-07-16 18:16:33 -04:00
lut.c drm/nouveau/nvif: give every mem object a human-readable identifier 2020-07-24 18:50:51 +10:00
lut.h drm/nouveau/kms/nv50-: allow more flexibility with lut formats 2018-12-11 15:37:49 +10:00
oimm507b.c drm/nouveau/nvif: give every object a human-readable identifier 2020-07-24 18:50:50 +10:00
oimm.c drm/nouveau/kms/nv50-: split each resource type into their own source files 2018-05-18 15:01:28 +10:00
oimm.h drm/nouveau/kms/nv50-: split each resource type into their own source files 2018-05-18 15:01:28 +10:00
ovly507e.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw scale_set() 2020-07-24 18:51:00 +10:00
ovly827e.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw image_set() 2020-07-24 18:51:00 +10:00
ovly907e.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw image_set() 2020-07-24 18:51:00 +10:00
ovly917e.c drm/nouveau/kms/nv50-: remove overlay alpha formats 2019-08-23 12:55:32 +10:00
ovly.c drm/nouveau/kms/nv50-: initial overlay support 2018-05-18 15:01:31 +10:00
ovly.h drm/nouveau/kms/nv50-: convert wndw update() to new push macros 2020-07-24 18:50:53 +10:00
pior507d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_ctrl() 2020-07-24 18:51:01 +10:00
sor507d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_ctrl() 2020-07-24 18:51:01 +10:00
sor907d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_get_caps() 2020-07-24 18:51:01 +10:00
sorc37d.c drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_ctrl() 2020-07-24 18:51:01 +10:00
wimm.c drm/nouveau/disp/tu102: rename implementation from tu104 2019-02-20 08:59:58 +10:00
wimm.h drm/nouveau/kms/gv100: initial support 2018-05-18 15:01:46 +10:00
wimmc37b.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wimm update() 2020-07-24 18:50:58 +10:00
wndw.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw blend_set() 2020-07-24 18:51:00 +10:00
wndw.h drm/nouveau/kms/nv50-: convert wndw update() to new push macros 2020-07-24 18:50:53 +10:00
wndwc37e.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw update() 2020-07-24 18:51:00 +10:00
wndwc57e.c drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw image_set() 2020-07-24 18:51:00 +10:00