ClangBuiltLinux / linux

Linux kernel source tree
Other
242 stars 14 forks source link

-Wignored-attributes in drivers/i3c/master/mipi-i3c-hci/core.c #1221

Closed nathanchance closed 3 years ago

nathanchance commented 3 years ago
../drivers/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute declaration must precede definition [-Wignored-attributes]
static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
                    ^
../include/linux/compiler_attributes.h:267:56: note: expanded from macro '__maybe_unused'
#define __maybe_unused                  __attribute__((__unused__))
                                                       ^
../include/linux/mod_devicetable.h:262:8: note: previous definition is here
struct of_device_id {
       ^
1 warning generated.

Patch submitted: https://lore.kernel.org/r/20201222025931.3043480-1-natechancellor@gmail.com

nathanchance commented 3 years ago

Accepted: https://git.kernel.org/i3c/c/291b5c9870fc546376d69cf792b7885cd0c9c1b3

nathanchance commented 3 years ago

Merged into mainline: https://git.kernel.org/torvalds/c/291b5c9870fc