Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

const_structs.checkpatch: add bin_attribute

Now that the sysfs core can handle "const struct bin_attribute", make
sure that new usages of the struct already enter the tree as const.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20250530-sysfs-const-bin_attr-final-v3-1-724bfcf05b99@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thomas Weißschuh and committed by
Greg Kroah-Hartman
2841ef8d 2a1ea59d

+1
+1
scripts/const_structs.checkpatch
··· 1 1 acpi_dock_ops 2 2 address_space_operations 3 3 backlight_ops 4 + bin_attribute 4 5 block_device_operations 5 6 bus_type 6 7 clk_ops