diff options
author | Ivan Orlov <[email protected]> | 2023-08-10 22:27:11 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-11 21:41:33 +0200 |
commit | b5fa33795544be7cb791a6991cb4bb6a237967f4 (patch) | |
tree | 898cfcc8378caf088c2fd45e719d6a1c2a9fa756 /lib/test_fortify/write_overflow-strncpy.c | |
parent | 60df28ac09d666f0b0e96fedf556d878715fa86f (diff) |
misc: genwqe: make class_genwqe a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the class_genwqe structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time. Update the 'class_genwqe' field of the
'genwqe_dev' struct correspondingly.
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ivan Orlov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions