rtnetlink: Mark name argument of rtnl_create_link() const
authorThomas Graf <tgraf@suug.ch>
Thu, 9 Apr 2015 23:45:53 +0000 (01:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Apr 2015 19:42:40 +0000 (12:42 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h
net/core/rtnetlink.c

index 6c6d5393fc349b46c384aa033554e4d12682040d..343d922d15c2ce0ce1a53dd55d7c006a42e15c99 100644 (file)
@@ -137,7 +137,7 @@ void rtnl_af_register(struct rtnl_af_ops *ops);
 void rtnl_af_unregister(struct rtnl_af_ops *ops);
 
 struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
-struct net_device *rtnl_create_link(struct net *net, char *ifname,
+struct net_device *rtnl_create_link(struct net *net, const char *ifname,
                                    unsigned char name_assign_type,
                                    const struct rtnl_link_ops *ops,
                                    struct nlattr *tb[]);
index c3bf19000d3a17e2e6631ea892a25a79e4d588b5..7a836152359b2afe5b32a469ba5125bfd4910450 100644 (file)
@@ -1932,7 +1932,7 @@ int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm)
 EXPORT_SYMBOL(rtnl_configure_link);
 
 struct net_device *rtnl_create_link(struct net *net,
-       char *ifname, unsigned char name_assign_type,
+       const char *ifname, unsigned char name_assign_type,
        const struct rtnl_link_ops *ops, struct nlattr *tb[])
 {
        int err;