Skip to content

Commit 5530ace

Browse files
alectric-trgregkh
authored andcommitted
docs: networking: can: change bcm_msg_head frames member to support flexible array
[ Upstream commit 641427d ] 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 94dfc73 ("treewide: uapi: Replace zero-length arrays with flexible-array members") Signed-off-by: Alex Tran <alex.t.tran@gmail.com> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Link: https://patch.msgid.link/20250904031709.1426895-1-alex.t.tran@gmail.com Fixes: 94dfc73 ("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 <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ab828b7 commit 5530ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/networking/can.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ The broadcast manager sends responses to user space in the same form:
740740
struct timeval ival1, ival2; /* count and subsequent interval */
741741
canid_t can_id; /* unique can_id for task */
742742
__u32 nframes; /* number of can_frames following */
743-
struct can_frame frames[0];
743+
struct can_frame frames[];
744744
};
745745
746746
The aligned payload 'frames' uses the same basic CAN frame structure defined

0 commit comments

Comments
 (0)