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. Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx> --- Thomas Weißschuh (2): RDMA/hfi1: Constify 'struct bin_attribute' RDMA/qib: Constify 'struct bin_attribute' drivers/infiniband/hw/hfi1/sysfs.c | 14 +++++++------- drivers/infiniband/hw/qib/qib_sysfs.c | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) --- base-commit: 7f5b6a8ec18e3add4c74682f60b90c31bdf849f2 change-id: 20250114-sysfs-const-bin_attr-infiniband-fce6de3fb8b9 Best regards, -- Thomas Weißschuh <linux@xxxxxxxxxxxxxx>