Netdev List
 help / color / mirror / Atom feed
* [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array
@ 2025-09-04  3:17 Alex Tran
  2025-09-04  6:25 ` Oliver Hartkopp
  2025-09-09 11:59 ` Marc Kleine-Budde
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Tran @ 2025-09-04  3:17 UTC (permalink / raw)
  To: socketcan
  Cc: mkl, davem, edumazet, kuba, pabeni, horms, linux-can, netdev,
	linux-kernel, Alex Tran

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")

Bug 217783 <https://bugzilla.kernel.org/show_bug.cgi?id=217783>

Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
---
 Documentation/networking/can.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/networking/can.rst b/Documentation/networking/can.rst
index bc1b585355f7..7650c4b5be5f 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
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array
  2025-09-04  3:17 [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array Alex Tran
@ 2025-09-04  6:25 ` Oliver Hartkopp
  2025-09-09 10:35   ` Paolo Abeni
  2025-09-09 11:59 ` Marc Kleine-Budde
  1 sibling, 1 reply; 5+ messages in thread
From: Oliver Hartkopp @ 2025-09-04  6:25 UTC (permalink / raw)
  To: Alex Tran
  Cc: mkl, davem, edumazet, kuba, pabeni, horms, linux-can, netdev,
	linux-kernel



On 04.09.25 05:17, Alex Tran wrote:
> 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")
> 
> Bug 217783 <https://bugzilla.kernel.org/show_bug.cgi?id=217783>
> 
> Signed-off-by: Alex Tran <alex.t.tran@gmail.com>

Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>

Thanks Alex!

> ---
>   Documentation/networking/can.rst | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/networking/can.rst b/Documentation/networking/can.rst
> index bc1b585355f7..7650c4b5be5f 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array
  2025-09-04  6:25 ` Oliver Hartkopp
@ 2025-09-09 10:35   ` Paolo Abeni
  2025-09-09 11:03     ` Marc Kleine-Budde
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Abeni @ 2025-09-09 10:35 UTC (permalink / raw)
  To: Oliver Hartkopp, Alex Tran
  Cc: mkl, davem, edumazet, kuba, horms, linux-can, netdev,
	linux-kernel

On 9/4/25 8:25 AM, Oliver Hartkopp wrote:
> On 04.09.25 05:17, Alex Tran wrote:
>> 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")
>>
>> Bug 217783 <https://bugzilla.kernel.org/show_bug.cgi?id=217783>
>>
>> Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
> 
> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>

@Mark, @Oliver: I assume you want us to apply this patch directly to the
net tree, am I correct?

If so, @Alex: please use a formal 'Fixes:' tag for the blamed commit and
'Link: to reference the bz entry, thanks!

Paolo


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array
  2025-09-09 10:35   ` Paolo Abeni
@ 2025-09-09 11:03     ` Marc Kleine-Budde
  0 siblings, 0 replies; 5+ messages in thread
From: Marc Kleine-Budde @ 2025-09-09 11:03 UTC (permalink / raw)
  To: Paolo Abeni
  Cc: Oliver Hartkopp, Alex Tran, davem, edumazet, kuba, horms,
	linux-can, netdev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

On 09.09.2025 12:35:46, Paolo Abeni wrote:
> On 9/4/25 8:25 AM, Oliver Hartkopp wrote:
> > On 04.09.25 05:17, Alex Tran wrote:
> >> 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")
> >>
> >> Bug 217783 <https://bugzilla.kernel.org/show_bug.cgi?id=217783>
> >>
> >> Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
> > 
> > Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
> 
> @Mark, @Oliver: I assume you want us to apply this patch directly to the
> net tree, am I correct?

I'll take it.

> If so, @Alex: please use a formal 'Fixes:' tag for the blamed commit and
> 'Link: to reference the bz entry, thanks!

Will do.

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array
  2025-09-04  3:17 [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array Alex Tran
  2025-09-04  6:25 ` Oliver Hartkopp
@ 2025-09-09 11:59 ` Marc Kleine-Budde
  1 sibling, 0 replies; 5+ messages in thread
From: Marc Kleine-Budde @ 2025-09-09 11:59 UTC (permalink / raw)
  To: Alex Tran
  Cc: socketcan, davem, edumazet, kuba, pabeni, horms, linux-can,
	netdev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

On 03.09.2025 20:17:09, Alex Tran wrote:
> 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")
> 
> Bug 217783 <https://bugzilla.kernel.org/show_bug.cgi?id=217783>
> 
> Signed-off-by: Alex Tran <alex.t.tran@gmail.com>

Applied to linux-can.

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-09 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04  3:17 [PATCH v1] docs: networking: can: change bcm_msg_head frames member to support flexible array Alex Tran
2025-09-04  6:25 ` Oliver Hartkopp
2025-09-09 10:35   ` Paolo Abeni
2025-09-09 11:03     ` Marc Kleine-Budde
2025-09-09 11:59 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox