291b5c9870
Clang warns:
../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.
'struct of_device_id' should not be split, as it is a type. Move the
__maybe_unused attribute after the static and const qualifiers so that
there are no warnings about this variable, period.
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
cmd.h | ||
cmd_v1.c | ||
cmd_v2.c | ||
core.c | ||
dat.h | ||
dat_v1.c | ||
dct.h | ||
dct_v1.c | ||
dma.c | ||
ext_caps.c | ||
ext_caps.h | ||
hci.h | ||
ibi.h | ||
pio.c | ||
xfer_mode_rate.h |