projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a712b30
)
fbmem: Mark proc_fb_seq_ops as __maybe_unused
author
Guenter Roeck
<linux@roeck-us.net>
Tue, 4 May 2021 14:29:10 +0000
(07:29 -0700)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 4 May 2021 15:12:37 +0000
(17:12 +0200)
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
drivers/video/fbdev/core/fbmem.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/core/fbmem.c
b/drivers/video/fbdev/core/fbmem.c
index 372b52a2befab2bb8682275eb8a0cbcea8ad16fa..52c606c0f8a2ff992b89699969875d25c5f243a3 100644
(file)
--- 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,