fbmem: Mark proc_fb_seq_ops as __maybe_unused
Subsystems (2)
PATCH 1/1 fbmem: Mark proc_fb_seq_ops as __maybe_unused
With CONFIG_PROC_FS=n and -Werror, 0-day reports:
drivers/video/fbdev/core/fbmem.c:736:36: error:
'proc_fb_seq_ops' defined but not used
Mark it as __maybe_unused.
Reported-by kernel test robot <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- drivers/video/fbdev/core/fbmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/core/fbmem.c +1 -1
@@ -733,7 +733,7 @@ static int fb_seq_show(struct seq_file *m, void *v)return 0 ; } -static const struct seq_operations proc_fb_seq_ops = { +static const struct __maybe_unused seq_operations proc_fb_seq_ops = { .start = fb_seq_start, .next = fb_seq_next, .stop = fb_seq_stop,
Signature · 1 line
2.25.1
Daniel Vetter
AppliedQuoted 10 lines · Guenter Roeck
With
CONFIG_PROC_FS=nand -Werror, 0-day reports:
drivers/video/fbdev/core/fbmem.c:736:36: error:
'proc_fb_seq_ops' defined but not usedMark it as
__maybe_unused.Reported-by kernel test robot <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Queued up for -rc1 in drm-misc-next-fixes, thanks for the patch. -Daniel
Quoted 24 lines
--- drivers/video/fbdev/core/fbmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/fbdev/core/fbmem.c +1
-2@@ -733,7 +733,7 @@ static int fb_seq_show(struct seq_file *m, void *v)return 0 ; } -static const struct seq_operations proc_fb_seq_ops = { +static const struct __maybe_unused seq_operations proc_fb_seq_ops = { .start = fb_seq_start, .next = fb_seq_next, .stop = fb_seq_stop, --2.25.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel