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
..
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 ocxl: simplify the return expression of free_function_dev() 2020-10-02 11:35:46 +02:00
file.c eventfd: simplify eventfd_signal() 2023-11-28 14:08:38 +01:00
Kconfig powerpc updates for 5.10 2020-10-16 12:21:15 -07: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
Makefile ocxl: Provide global MMIO accessors for external drivers 2019-05-03 02:55:02 +10:00
mmio.c ocxl: Provide global MMIO accessors for external drivers 2019-05-03 02:55:02 +10:00
ocxl_internal.h ocxl: Remove the unused declarations in headr file 2024-09-11 16:03:20 +02:00
pasid.c
pci.c ocxl: Make ocxl_remove() static 2019-05-28 12:08:11 +10:00
sysfs.c sysfs: treewide: constify attribute callback of bin_attribute::mmap() 2024-11-05 14:00:28 +01:00
trace.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
trace.h ocxl: Add new kernel traces 2020-12-04 01:01:30 +11:00