mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
net: fix warning about non-const string
Since dev_set_name takes a printf style string, new gcc complains if arg is not const. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7546dd97d2
commit
a2205472c3
@ -498,7 +498,7 @@ int netdev_register_kobject(struct net_device *net)
|
||||
dev->groups = groups;
|
||||
|
||||
BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ);
|
||||
dev_set_name(dev, net->name);
|
||||
dev_set_name(dev, "%s", net->name);
|
||||
|
||||
#ifdef CONFIG_SYSFS
|
||||
*groups++ = &netstat_group;
|
||||
|
Loading…
Reference in New Issue
Block a user