diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-02 14:05:59 -0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-03-05 11:21:18 -0800 |
commit | 2ad2018aa3572a82079b423f61680353bed2af60 (patch) | |
tree | 4595e6f6417625eb1302fb37966d7e48b5a56b09 /lib/crypto/mpi/mpi-add.c | |
parent | 63767a76318c4e2b8321b9eed728ba18020aaccf (diff) |
net: ppp: make ppp_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 ppp_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 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions