From: Stephen Hemminger Date: Mon, 9 Mar 2009 13:51:55 +0000 (+0000) Subject: net: fix warning about non-const string X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2205472c3017bfe97b6cb6f5acd6ca141a97eda;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- 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) 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;