RDMA/qib: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 14 Jan 2025 21:32:14 +0000 (22:32 +0100)
committerLeon Romanovsky <leon@kernel.org>
Sun, 19 Jan 2025 08:56:04 +0000 (03:56 -0500)
commitf5f01c5c409e697c6ae7091ca578bfbd3825e87c
tree7945b7e6c5aa6b4754151b9ba5cbf4b78a8fe3ec
parent39d772f6654a17ae57656602e801d265e82a2e36
RDMA/qib: Constify 'struct bin_attribute'

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@weissschuh.net>
Link: https://patch.msgid.link/20250114-sysfs-const-bin_attr-infiniband-v1-2-397aaa94d453@weissschuh.net
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/qib/qib_sysfs.c