]> www.infradead.org Git - users/dwmw2/linux.git/commit
driver core: Constify bin_attribute definitions
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 15 Nov 2024 16:42:49 +0000 (17:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Nov 2024 18:29:16 +0000 (19:29 +0100)
commit5943c0dc7912210be1ab2732e0b663c1082ab543
tree19502553b5ed75f90143df0ef55e9202a05557d7
parent906c508afdca3487c4273bfeda8abedc8e21047b
driver core: Constify bin_attribute definitions

Mark all 'struct bin_attribute' instances as const to protect against
accidental and malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241115-b4-sysfs-const-bin_attr-group-v1-2-2c9bb12dfc48@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/node.c
drivers/base/topology.c