[PATCH] clk: keystone: Fix discarded const qualifiers

Stephen Boyd sboyd at kernel.org
Thu Nov 13 18:18:08 PST 2025


Quoting Adrian Barnaś (2025-10-28 09:16:42)
> Add const qualifiers to the pointers returned from 'container_of' macro
> to prevent breaking the const promise on const struct pointers from
> parameters.
> 
> Once you have a mutable container structure pointer, you can change
> structure fields through it, which violates the const guarantee.
> 
> Signed-off-by: Adrian Barnaś <abarnas at google.com>
> ---

Applied to clk-next



More information about the linux-arm-kernel mailing list