linux-stable/drivers/cxl
Thomas Weißschuh b626816fdd sysfs: treewide: constify attribute callback of bin_is_visible()
The is_bin_visible() callbacks should not modify the struct
bin_attribute passed as argument.
Enforce this by marking the argument as const.

As there are not many callback implementers perform this change
throughout the tree at once.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Ira Weiny <ira.weiny@intel.com>
Acked-by: Krzysztof Wilczyński <kw@linux.com>
Link: https://lore.kernel.org/r/20241103-sysfs-const-bin_attr-v2-5-71110628844c@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-05 14:00:28 +01:00
..
core cxl/port: Prevent out-of-order decoder allocation 2024-10-25 16:07:03 -05:00
acpi.c cxl/acpi: Ensure ports ready at cxl_acpi_probe() return 2024-10-25 16:07:03 -05:00
cxl.h cxl/port: Fix use-after-free, permit out-of-order decoder shutdown 2024-10-25 16:07:03 -05:00
cxlmem.h cxl: Preserve the CDAT access_coordinate for an endpoint 2024-09-22 21:02:53 -07:00
cxlpci.h PCI/CXL: Move CXL Vendor ID to pci_ids.h 2024-05-08 13:18:33 -05:00
Kconfig cxl/port: Fix CXL port initialization order when the subsystem is built-in 2024-10-25 16:06:49 -05:00
Makefile cxl/port: Fix CXL port initialization order when the subsystem is built-in 2024-10-25 16:06:49 -05:00
mem.c cxl/pci: Rename cxl_setup_parent_dport() and cxl_dport_map_regs() 2024-09-03 15:29:33 -07:00
pci.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
pmem.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
pmu.h cxl/pci: Find and register CXL PMU devices 2023-05-30 11:20:35 -07:00
port.c sysfs: treewide: constify attribute callback of bin_is_visible() 2024-11-05 14:00:28 +01:00
security.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00