aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-03-05 17:04:47 -0300
committerJakub Kicinski <kuba@kernel.org>2024-03-07 20:26:24 -0800
commit479b4bc867b9f7792a807f32118890d97609aeab (patch)
treeae06a933ae382d9779fc5520eab21d4a5423f2dc /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
parentb72413211b485da48099b20d733d342ff51e774b (diff)
downloadlinux-479b4bc867b9f7792a807f32118890d97609aeab.tar.gz
linux-479b4bc867b9f7792a807f32118890d97609aeab.tar.bz2
linux-479b4bc867b9f7792a807f32118890d97609aeab.zip
isdn: mISDN: make elements_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take a const *"), the driver core allows for struct class to be in read-only memory, so move the elements_class structure to be declared at build time placing it into read-only memory, instead of having to be dynamically allocated at boot time. Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240305-class_cleanup-isdn-v1-1-6f0edca75b61@marliere.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions