diff options
author | 2024-03-02 14:06:01 -0300 | |
---|---|---|
committer | 2024-03-05 11:21:18 -0800 | |
commit | 070bef83f03ea9d91a8011f18113f8967e3df5bf (patch) | |
tree | 0b7c30a173fd6808cd721029c10bee6d43c0c5a9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: wwan: hwsim: make wwan_hwsim_class constant (diff) | |
download | wireguard-linux-070bef83f03ea9d91a8011f18113f8967e3df5bf.tar.xz wireguard-linux-070bef83f03ea9d91a8011f18113f8967e3df5bf.zip |
net: wwan: core: make wwan_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 wwan_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>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Link: https://lore.kernel.org/r/20240302-class_cleanup-net-next-v1-5-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