* [PATCH] Bluetooth: btusb: Use DECLARE_FLEX_ARRAY() for qca_dump_hdr [not found] <20260728212431.106411-1-deaner92.ref@yahoo.com> @ 2026-07-28 21:24 ` Jeremy Dean 2026-07-28 23:20 ` bluez.test.bot 0 siblings, 1 reply; 2+ messages in thread From: Jeremy Dean @ 2026-07-28 21:24 UTC (permalink / raw) To: Marcel Holtmann, Luiz Augusto von Dentz Cc: linux-bluetooth, linux-kernel, Jeremy Dean Replace the deprecated zero-length array members in struct qca_dump_hdr with DECLARE_FLEX_ARRAY(), since C99 flexible array members are not permitted inside unions or as the sole member of a struct. Verified via offsetof()/sizeof() comparison that struct layout (data/data0 offsets and overall size) is unchanged, and confirmed the driver still compiles cleanly 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> --- drivers/bluetooth/btusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 8f7ed469cac6..b78c4a0e75fd 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -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; -- 2.43.0 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: Bluetooth: btusb: Use DECLARE_FLEX_ARRAY() for qca_dump_hdr 2026-07-28 21:24 ` [PATCH] Bluetooth: btusb: Use DECLARE_FLEX_ARRAY() for qca_dump_hdr Jeremy Dean @ 2026-07-28 23:20 ` bluez.test.bot 0 siblings, 0 replies; 2+ messages in thread From: bluez.test.bot @ 2026-07-28 23:20 UTC (permalink / raw) To: linux-bluetooth, deaner92 [-- Attachment #1: Type: text/plain, Size: 1181 bytes --] 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=1136220 ---Test result--- Test Summary: CheckPatch PASS 0.72 seconds VerifyFixes PASS 0.13 seconds VerifySignedoff PASS 0.13 seconds GitLint PASS 0.32 seconds SubjectPrefix PASS 0.13 seconds BuildKernel PASS 26.87 seconds CheckAllWarning PASS 29.11 seconds CheckSparse PASS 28.02 seconds BuildKernel32 PASS 25.90 seconds CheckKernelLLVM SKIP 0.00 seconds TestRunnerSetup PASS 492.88 seconds IncrementalBuild PASS 25.18 seconds Details ############################## Test: CheckKernelLLVM - SKIP Desc: Build kernel with LLVM + context analysis Output: Clang not found https://github.com/bluez/bluetooth-next/pull/506 --- Regards, Linux Bluetooth ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-28 23:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260728212431.106411-1-deaner92.ref@yahoo.com>
2026-07-28 21:24 ` [PATCH] Bluetooth: btusb: Use DECLARE_FLEX_ARRAY() for qca_dump_hdr Jeremy Dean
2026-07-28 23:20 ` bluez.test.bot
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.