aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorCedric Xing <[email protected]>2025-05-13 16:41:54 +0000
committerDan Williams <[email protected]>2025-05-13 18:02:33 +0000
commitb0ca403a9e381140cf626ca94519fb468370fc3e (patch)
tree8a4aec091751920b58e7cfdb7a06d0329ce8d7b9 /rust/helpers/platform.c
parentsample/tsm-mr: Fix missing static for sample_report (diff)
downloadkernel-b0ca403a9e381140cf626ca94519fb468370fc3e.tar.gz
kernel-b0ca403a9e381140cf626ca94519fb468370fc3e.zip
tsm-mr: Fix init breakage after bin_attrs constification by scoping non-const pointers to init phase
Commit 9bec944506fa ("sysfs: constify attribute_group::bin_attrs") enforced the ro-after-init principle by making elements of bin_attrs_new pointing to const. To align with this change, introduce a temporary variable `bap` within the initialization loop. This improves code clarity by explicitly marking the initialization scope and eliminates the need for type casts when assigning to bin_attrs_new. Signed-off-by: Cedric Xing <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions