PCI/ACPI: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 2 Dec 2024 19:03:00 +0000 (20:03 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 10 Dec 2024 19:00:50 +0000 (13:00 -0600)
commitd5bdde0b38c1d17f39ad6d41d16af33357b329b2
tree3be5329a0cbcdf21a60cb71ddbac16d91bd3750e
parent35fdb302caab92f7ee998ff428b0f41c2c3a45f7
PCI/ACPI: 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-4-c32360f495a7@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_ibm.c