Skip to content
Permalink
Browse files
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 <lkp@intel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210504142910.2084722-1-linux@roeck-us.net
  • Loading branch information
groeck authored and junxiaoc committed Jul 14, 2021
1 parent 3a8588c commit 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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,

0 comments on commit 3aeb519

Please sign in to comment.