PCI/VPD: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 2 Dec 2024 19:02:58 +0000 (20:02 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 3 Dec 2024 21:25:41 +0000 (15:25 -0600)
commit3c39919a5f3d65abff031a7d9acd3b5f5672eec7
tree7b72073ef2576500d1aef3d2cc1ecb74b6c1678d
parent0530ad489d1576ac2e9d65068500d11b653c8f8a
PCI/VPD: 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.

Link: https://lore.kernel.org/r/20241202-sysfs-const-bin_attr-pci-v1-2-c32360f495a7@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c