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>
This commit is contained in:
committed by
David S. Miller
parent
4ca78e61ec
commit
9382b4f338
@ -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,
|
||||
|
Reference in New Issue
Block a user