summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2021-05-04 07:29:10 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2021-05-04 17:12:37 +0200
commitb9d79e4ca4ff23543d6b33c736ba07c1f0a9dcb1 (patch)
treea7c58659b4891c7bbe795e4b4bda9e9095b648d8 /drivers
parenta712b307cfde6dbe0d4829293afb1566beb30a9a (diff)
downloadlinux-stable-b9d79e4ca4ff23543d6b33c736ba07c1f0a9dcb1.tar.gz
linux-stable-b9d79e4ca4ff23543d6b33c736ba07c1f0a9dcb1.tar.bz2
linux-stable-b9d79e4ca4ff23543d6b33c736ba07c1f0a9dcb1.zip
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fbdev/core/fbmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c
index 372b52a2befa..52c606c0f8a2 100644
--- a/drivers/video/fbdev/core/fbmem.c
+++ b/drivers/video/fbdev/core/fbmem.c
@@ -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,