Thread (3 messages) 3 messages, 3 authors, 2025-11-14

Re: [PATCH] clk: keystone: Fix discarded const qualifiers

From: Stephen Boyd <sboyd@kernel.org>
Date: 2025-11-14 03:36:08
Also in: linux-clk, lkml

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ś <redacted>
---
Applied to clk-next
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help