[PATCH 0/4] firmware: google: Constify 'struct bin_attribute'

From: Thomas Weißschuh
Date: Sun Dec 15 2024 - 09:49:52 EST


The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

Please also note the remark at the end of the vpd patch.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (4):
firmware: google: cbmem: Constify 'struct bin_attribute'
firmware: google: gsmi: Constify 'struct bin_attribute'
firmware: google: memconsole: Use const 'struct bin_attribute' callback
firmware: google: vpd: Use const 'struct bin_attribute' callback

drivers/firmware/google/cbmem.c | 10 +++++-----
drivers/firmware/google/gsmi.c | 6 +++---
drivers/firmware/google/memconsole.c | 4 ++--
drivers/firmware/google/vpd.c | 8 ++++----
4 files changed, 14 insertions(+), 14 deletions(-)
---
base-commit: 2d8308bf5b67dff50262d8a9260a50113b3628c6
change-id: 20241215-sysfs-const-bin_attr-google-2af43b3f793e

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>