From: Alex Tran Date: Thu, 4 Sep 2025 03:17:09 +0000 (-0700) Subject: docs: networking: can: change bcm_msg_head frames member to support flexible array X-Git-Tag: v6.12.48~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2935d8230ea6acb2583040b4a2004bf746a0abad;p=thirdparty%2Fkernel%2Fstable.git docs: networking: can: change bcm_msg_head frames member to support flexible array [ Upstream commit 641427d5bf90af0625081bf27555418b101274cd ] The documentation of the 'bcm_msg_head' struct does not match how it is defined in 'bcm.h'. Changed the frames member to a flexible array, matching the definition in the header file. See commit 94dfc73e7cf4 ("treewide: uapi: Replace zero-length arrays with flexible-array members") Signed-off-by: Alex Tran Acked-by: Oliver Hartkopp Link: https://patch.msgid.link/20250904031709.1426895-1-alex.t.tran@gmail.com Fixes: 94dfc73e7cf4 ("treewide: uapi: Replace zero-length arrays with flexible-array members") Link: https://bugzilla.kernel.org/show_bug.cgi?id=217783 Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin --- diff --git a/Documentation/networking/can.rst b/Documentation/networking/can.rst index 62519d38c58ba..58cc609e8669b 100644 --- a/Documentation/networking/can.rst +++ b/Documentation/networking/can.rst @@ -742,7 +742,7 @@ The broadcast manager sends responses to user space in the same form: struct timeval ival1, ival2; /* count and subsequent interval */ canid_t can_id; /* unique can_id for task */ __u32 nframes; /* number of can_frames following */ - struct can_frame frames[0]; + struct can_frame frames[]; }; The aligned payload 'frames' uses the same basic CAN frame structure defined