]> git.baikalelectronics.ru Git - kernel.git/commit
fbmem: fix horribly incorrect placement of __maybe_unused
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 May 2021 21:03:33 +0000 (14:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 May 2021 21:03:33 +0000 (14:03 -0700)
commit0568247ad4e3bf7946ab8a84066b79efb6aa4339
tree00c6a6ef14a63d2d0a0a6b91ae2ba899fbd544e9
parent12f0f483c142b39721b1e5a0ec7b48fe0339755a
fbmem: fix horribly incorrect placement of __maybe_unused

Commit be5a75f310a5 ("fbmem: Mark proc_fb_seq_ops as __maybe_unused")
places the '__maybe_unused' in an entirely incorrect location between
the "struct" keyword and the structure name.

It's a wonder that gcc accepts that silently, but clang quite reasonably
warns about it:

    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 = {
                        ^

Fix it.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/fbdev/core/fbmem.c