diff options
| author | 2026-08-25 12:22:07 +0000 | |
|---|---|---|
| committer | 2026-10-14 14:38:13 -0400 | |
| commit | 00b201656db41c9eeeed5ca92a4efb6d729ae58e (patch) | |
| tree | e604495213fedb0865919a26bcdb501e1ed9d211 /scripts/Makefile.thinlto | |
| parent | Bluetooth: btmtk: Replace magic numbers with WMT packet flag enum (diff) | |
Bluetooth: Fix code style error
checkpatch.pl flags the zero-length array members in struct
qca_dump_hdr:
ERROR: Use C99 flexible arrays - see
https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays
#3110: FILE: drivers/bluetooth/btusb.c:3110:
+ u8 data0[0];
Replace them with DECLARE_FLEX_ARRAY(), since C99 flexible array
members are not permitted inside unions or as the sole member of
a struct.
The struct layout is unchanged, and everything compiles with the
change.
Link: https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays
Signed-off-by: Jeremy Dean <deaner92@yahoo.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
