diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-04-12 12:17:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-15 11:46:01 +0200 |
commit | 9382b4f338d261494aad7eeffef0b13ff663b542 (patch) | |
tree | cef05158b6b42f987eecafaecde98f629c5ed511 /net/core/net-sysfs.c | |
parent | gve: Correctly report software timestamping capabilities (diff) | |
download | linux-9382b4f338d261494aad7eeffef0b13ff663b542.tar.xz linux-9382b4f338d261494aad7eeffef0b13ff663b542.zip |
net: constify net_class
AFAICS all users of net_class take a const struct class * argument.
Therefore fully constify net_class.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r-- | net/core/net-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index ff3ee45be64a..1f7f09e56771 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -2046,7 +2046,7 @@ static void net_get_ownership(const struct device *d, kuid_t *uid, kgid_t *gid) net_ns_get_ownership(net, uid, gid); } -static struct class net_class __ro_after_init = { +static const struct class net_class = { .name = "net", .dev_release = netdev_release, .dev_groups = net_class_groups, |