]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
software node: Constify node_group in registration functions
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Aug 2025 06:03:52 +0000 (23:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Aug 2025 11:18:07 +0000 (13:18 +0200)
commit292cb391479d50f4379a0abab34324de92c82a92
tree85b0dc336ba2db4c2cfadb508faa29610142f9b8
parent1e180614b3608e1cb0f81753b2172af253d58a52
software node: Constify node_group in registration functions

The software_node_register_node_group() and
software_node_unregister_node_group() functions take in essence an
array of pointers to software_node structs. Since the functions do not
modify the array declare the argument as constant, so that static
arrays can be declared as const and annotated as __initconst.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/2zny5grbgtwbplynxffxg6dkgjgqf45aigwmgxio5stesdr3wi@gf2zamk5amic
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/swnode.c
include/linux/property.h