diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-09 09:51:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-10 08:22:43 -0400 |
commit | a2205472c3017bfe97b6cb6f5acd6ca141a97eda (patch) | |
tree | 31cca8b1cdb399a24d764cb7206fda222d9c5624 /net/core | |
parent | 7546dd97d27306d939c13e03318aae695badaa88 (diff) |
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>
Diffstat (limited to 'net/core')
-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 484f58750eba..2da59a0ac4ac 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -498,7 +498,7 @@ int netdev_register_kobject(struct net_device *net) | |||
498 | dev->groups = groups; | 498 | dev->groups = groups; |
499 | 499 | ||
500 | BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ); | 500 | BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ); |
501 | dev_set_name(dev, net->name); | 501 | dev_set_name(dev, "%s", net->name); |
502 | 502 | ||
503 | #ifdef CONFIG_SYSFS | 503 | #ifdef CONFIG_SYSFS |
504 | *groups++ = &netstat_group; | 504 | *groups++ = &netstat_group; |