diff options
| author | Alex Tran <alex.t.tran@gmail.com> | 2025-09-03 20:17:09 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-19 16:29:58 +0200 |
| commit | 5530acecc532835229c7134210718f014fc2f13a (patch) | |
| tree | 5888564004a1f2cb7f498452f8675ed03ea8ba70 /Documentation | |
| parent | ab828b789dc029dfc7f0fd31e7a0d97ce7330e53 (diff) | |
| download | linux-5530acecc532835229c7134210718f014fc2f13a.tar.gz linux-5530acecc532835229c7134210718f014fc2f13a.tar.bz2 linux-5530acecc532835229c7134210718f014fc2f13a.zip | |
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 <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: 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 <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/networking/can.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/networking/can.rst b/Documentation/networking/can.rst index ebc822e605f5..9ac6d3973ad5 100644 --- a/Documentation/networking/can.rst +++ b/Documentation/networking/can.rst @@ -740,7 +740,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 |
