Re: [PATCH] clk: keystone: Fix discarded const qualifiers
From: Stephen Boyd
Date: Thu Nov 13 2025 - 22:36:08 EST
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@xxxxxxxxxx>
> ---
Applied to clk-next