aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorRicardo B. Marliere <[email protected]>2024-03-09 21:10:08 -0800
committerDmitry Torokhov <[email protected]>2024-03-10 14:38:04 -0700
commita4735d40a5da96a637af6e5bf9f6ec8b9d996acd (patch)
tree4b504100ab7b6ce5b79578f90355aee0bf0a3bd0 /lib/test_fortify/write_overflow-strncpy-src.c
parent1099a04ccc9b4d2b9d5dcd33d9bb9c333e147e8d (diff)
Input: make input_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 input_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 <[email protected]> Signed-off-by: Ricardo B. Marliere <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions