diff options
| author | Ricardo B. Marliere <[email protected]> | 2024-03-05 20:04:48 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-03-08 04:26:24 +0000 |
| commit | 12fbd67ea3f4d3308057f312047fd161e5670d21 (patch) | |
| tree | ec135366686a9b6301291860af8754fb10c91fba /tools/net/ynl/lib/ynl.py | |
| parent | isdn: mISDN: make elements_class constant (diff) | |
| download | kernel-12fbd67ea3f4d3308057f312047fd161e5670d21.tar.gz kernel-12fbd67ea3f4d3308057f312047fd161e5670d21.zip | |
isdn: capi: make capi_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 capi_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]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions
