linux/drivers/misc/ocxl
Thomas Weißschuh 94a20fb9af sysfs: treewide: constify attribute callback of bin_attribute::mmap()
The mmap() 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: Andrew Donnellan <ajd@linux.ibm.com> # ocxl
Acked-by: Krzysztof Wilczyński <kw@linux.com>
Link: https://lore.kernel.org/r/20241103-sysfs-const-bin_attr-v2-6-71110628844c@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-05 14:00:28 +01:00
..
Kconfig
Makefile
afu_irq.c misc: ocxl: afu_irq: Remove unnecessary (void*) conversions 2023-11-27 22:01:14 +11:00
config.c ocxl: fix pci device refcount leak when calling get_function_0() 2022-11-23 19:49:22 +01:00
context.c misc: ocxl: context: Remove unnecessary (void*) conversions 2023-11-27 22:01:14 +11:00
core.c
file.c eventfd: simplify eventfd_signal() 2023-11-28 14:08:38 +01:00
link.c misc: ocxl: link: Remove unnecessary (void*) conversions 2023-11-27 22:01:14 +11:00
main.c misc: ocxl: main: Remove unnecessary ‘0’ values from rc 2023-11-27 22:01:14 +11:00
mmio.c
ocxl_internal.h ocxl: Remove the unused declarations in headr file 2024-09-11 16:03:20 +02:00
pasid.c
pci.c
sysfs.c sysfs: treewide: constify attribute callback of bin_attribute::mmap() 2024-11-05 14:00:28 +01:00
trace.c
trace.h