summaryrefslogtreecommitdiff
path: root/rust/helpers/time.c
diff options
context:
space:
mode:
authorAdrian Barnaś <abarnas@google.com>2025-10-28 19:16:42 +0300
committerStephen Boyd <sboyd@kernel.org>2025-11-14 05:16:09 +0300
commitfa3542e822c99196a27f030e87eab5458072613a (patch)
treeee57c9619c47ffe53e80ee617f39c88ddfe98a90 /rust/helpers/time.c
parent79d022dcad375c6ba95e78e9035c8a0630164300 (diff)
downloadlinux-fa3542e822c99196a27f030e87eab5458072613a.tar.xz
clk: keystone: Fix discarded const qualifiers
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@google.com> Reviewed-by: Nishanth Menon <nm@ti.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'rust/helpers/time.c')
0 files changed, 0 insertions, 0 deletions