diff options
author | 2024-03-02 14:05:57 -0300 | |
---|---|---|
committer | 2024-03-05 11:21:17 -0800 | |
commit | b6e3c115efb5bec0542508a9120b99960073870f (patch) | |
tree | f1f9d1b16d72dcf47cf8a0ba75ce332d0af11f3e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'net-phy-micrel-lan8814-erratas' (diff) | |
download | wireguard-linux-b6e3c115efb5bec0542508a9120b99960073870f.tar.xz wireguard-linux-b6e3c115efb5bec0542508a9120b99960073870f.zip |
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 <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240302-class_cleanup-net-next-v1-1-8fa378595b93@marliere.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions