]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
samples/kobject: make attribute_group const
authorMeng Shao Liu <sau525@gmail.com>
Wed, 16 Jul 2025 06:46:29 +0000 (14:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 11:32:53 +0000 (13:32 +0200)
commitf751fe2a2acbe8cc20da35f118f589ac3b316b78
tree5026e93edca04d74cfa36eabf9b5be55497a6606
parent42573e4df8e2318fce6a711e0f9cafc9e3dc1483
samples/kobject: make attribute_group const

The attr_group structures are allocated once and never modified at
runtime.  Also to match the const‑qualified parameter of
sysfs_create_group().

Signed-off-by: Meng Shao Liu <sau525@gmail.com>
Link: https://lore.kernel.org/r/dc94227eaf337a2b92ab77dffa0da9f7f1f84c4e.1752646650.git.sau525@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/kobject/kobject-example.c