aboutsummaryrefslogtreecommitdiffstats
path: root/mm/debug.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-12-27 13:23:24 +0000
committerPetr Pavlu <[email protected]>2025-01-26 12:05:24 +0000
commit4723f16de64e1580ec5dc15173f8da0b316b2257 (patch)
treec21335c8aaf1a28c26ef2ec17f21df56201d81cb /mm/debug.c
parentmodule: sysfs: Simplify section attribute allocation (diff)
downloadkernel-4723f16de64e1580ec5dc15173f8da0b316b2257.tar.gz
kernel-4723f16de64e1580ec5dc15173f8da0b316b2257.zip
module: sysfs: Add notes attributes through attribute_group
A kobject is meant to manage the lifecycle of some resource. However the module sysfs code only creates a kobject to get a "notes" subdirectory in sysfs. This can be achieved easier and cheaper by using a sysfs group. Switch the notes attribute code to such a group, similar to how the section allocation in the same file already works. Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Petr Pavlu <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/20241227-sysfs-const-bin_attr-module-v2-5-e267275f0f37@weissschuh.net Signed-off-by: Petr Pavlu <[email protected]>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions