[PATCH v2 06/10] sysfs: treewide: constify attribute callback of bin_attribute::mmap()

Andrew Donnellan ajd at linux.ibm.com
Sun Nov 3 17:24:55 PST 2024


On Sun, 2024-11-03 at 17:03 +0000, Thomas Weißschuh wrote:
> 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 at weissschuh.net>

Acked-by: Andrew Donnellan <ajd at linux.ibm.com> # ocxl

-- 
Andrew Donnellan    OzLabs, ADL Canberra
ajd at linux.ibm.com   IBM Australia Limited



More information about the linux-mtd mailing list