diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-02 14:05:57 -0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-03-05 11:21:17 -0800 |
commit | b6e3c115efb5bec0542508a9120b99960073870f (patch) | |
tree | f1f9d1b16d72dcf47cf8a0ba75ce332d0af11f3e /lib/crypto/mpi/mpi-bit.c | |
parent | e8efd372b2f9d2286fed9ef810430a1d6a37bcba (diff) |
net: hns: make hnae_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 hnae_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-bit.c')
0 files changed, 0 insertions, 0 deletions