Re: [PATCH] fbmem: Correct position of '__maybe_unused' in proc_fb_seq_ops

2021-05-05 Thread Guenter Roeck
On Wed, May 05, 2021 at 11:28:08AM -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute > declaration must precede definition [-Wignored-attributes] > static const struct __maybe_unused seq_operations proc_fb_seq_ops = { >

[PATCH] fbmem: Correct position of '__maybe_unused' in proc_fb_seq_ops

2021-05-05 Thread Nathan Chancellor
Clang warns: drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition [-Wignored-attributes] static const struct __maybe_unused seq_operations proc_fb_seq_ops = { ^ ./include/linux/compiler_attributes.h:273:56: note: expanded from