summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-10-05 13:06:17 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-10-17 00:13:38 +0300
commit3120b5f218ca8e2b375d496e2ff3f4f861fbc013 (patch)
tree6880dae00bd4614bdb9932ddac46ca86696de351 /rust/helpers/build_bug.c
parentcf70da29c4993bf23df68b67a82dfa3da8234e75 (diff)
downloadlinux-3120b5f218ca8e2b375d496e2ff3f4f861fbc013.tar.xz
power: supply: core: mark attribute arrays as ro_after_init
The attribute arrays are only modified during the __init phase. To protect them against intentional or accidental modification, mark them as __ro_after_init. To make sure no modifications are introduced, also mark the return values of the accessors as const. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20241005-power-supply-cleanups-v1-3-45303b2d0a4d@weissschuh.net Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions