]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
const_structs.checkpatch: add bin_attribute
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 30 May 2025 03:54:35 +0000 (05:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jun 2025 08:44:07 +0000 (10:44 +0200)
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>
scripts/const_structs.checkpatch

index e8609a03c3d8b5be4ec05eeda83c47ffc3feb646..6eb94fddc338a211a2aac9cb6e4cd9d15c4b4a6c 100644 (file)
@@ -1,6 +1,7 @@
 acpi_dock_ops
 address_space_operations
 backlight_ops
+bin_attribute
 block_device_operations
 bus_type
 clk_ops