Re: [PATCH RESEND] mux: Convert mux_control_ops to a flex array member in mux_chip

From: Thorsten Blum
Date: Wed Jun 18 2025 - 11:02:31 EST


On 10. Jun 2025, at 12:40, Thorsten Blum wrote:
> Convert mux_control_ops to a flexible array member at the end of the
> mux_chip struct and add the __counted_by() compiler attribute to
> improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
> CONFIG_FORTIFY_SOURCE.
>
> Use struct_size() to calculate the number of bytes to allocate for a new
> mux chip and to remove the following Coccinelle/coccicheck warning:
>
> WARNING: Use struct_size
>
> Use size_add() to safely add any extra bytes.
>
> No functional changes intended.
>
> Link: https://github.com/KSPP/linux/issues/83
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---

Hi all, since Peter isn't reachable, could someone else take care of
this one? Is there anything else I can do to get this merged?

I also noticed that Krzysztof recently changed the status of the mux
subsystem from "Maintained" to "Odd Fixes" in ff91020412085.

Thanks,
Thorsten