Bluetooth: Fix code style error
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v3 1/1 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.
--- drivers/bluetooth/btusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/btusb.c +2 -2
@@ -3103,10 +3103,10 @@ struct qca_dump_hdr {__le16 seqno;u8 reserved;union { -u8 data[0 ]; + DECLARE_FLEX_ARRAY(u8, data);struct {__le32 ram_dump_size; -u8 data0[0 ]; + DECLARE_FLEX_ARRAY(u8, data0); } __packed; }; } __packed;
Signature · 1 line
2.43.0
…
Quoted 2 lines
---
drivers/bluetooth/btusb.c| 4 ++--…
Some contributors would appreciate patch version descriptions.
https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.2-rc7#n310
Regards,
Markus
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1151528
---Test result---
Test Summary:
CheckPatch PASS 0.55 seconds VerifyFixes PASS 0.07 seconds VerifySignedoff PASS 0.07 seconds GitLint PASS 0.21 seconds SubjectPrefix PASS 0.06 seconds BuildKernel PASS 28.53 seconds CheckAllWarning PASS 35.29 seconds CheckSparse PASS 29.87 seconds BuildKernel32 PASS 26.98 seconds CheckKernelLLVM SKIP 0.00 seconds TestRunnerSetup PASS 509.27 seconds IncrementalBuild PASS 25.91 seconds
Details
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found
https://github.com/bluez/bluetooth-next/pull/652
---
Regards,
Linux Bluetooth
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1151528/
---Test result---
Test Summary:
CheckPatch PASS 0.92 seconds VerifyFixes PASS 0.13 seconds VerifySignedoff PASS 0.12 seconds GitLint PASS 0.32 seconds SubjectPrefix PASS 0.20 seconds BuildKernel PASS 27.62 seconds CheckAllWarning PASS 32.08 seconds CheckSparse PASS 35.24 seconds BuildKernel32 PASS 28.23 seconds CheckKernelLLVM PASS 43.62 seconds TestRunnerSetup PASS 730.95 seconds IncrementalBuild PASS 26.45 seconds
https://github.com/bluez/bluetooth-next/pull/746
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 9 lines · On Tue, 25 Aug 2026 12:22:07 +0000 you wrote:
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];[...]
Here is the summary with links:
- [v3] Bluetooth: Fix code style error
https://git.kernel.org/bluetooth/bluetooth-next/c/ca10117e55df
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html