diff options
author | Ivan Orlov <[email protected]> | 2023-08-10 21:49:05 +0400 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-08-18 08:43:11 +0100 |
commit | 43a707ae58406200597b03a5be782e726b3c175b (patch) | |
tree | 46fb8cb26855f59afa5848accac4bd53187da543 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 3d590af89b1e61568395ab37e9b5f88fd711f638 (diff) |
leds: Make leds_class a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the leds_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: Ivan Orlov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions