Skip to contentSkip to conversation

Bluetooth: btusb: Use DECLARE_FLEX_ARRAY() for qca_dump_hdr

PATCH In review Jeremy Dean 2 participants 3 messages Jul 28 – Aug 15 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Bluetooth: btusb: Use DECLARE_FLEX_ARRAY() for qca_dump_hdr

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.

---
 drivers/bluetooth/btusb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/btusb.c +2 -2
index 8f7ed469cac6..b78c4a0e75fd 100644
@@ -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
#2 lore raw

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