]> Pileus Git - ~andy/linux/commitdiff
rtnetlink: ops->get_tx_queue() cannot take a const 'tb'.
authorDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 18:21:04 +0000 (14:21 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 18:21:04 +0000 (14:21 -0400)
net/core/rtnetlink.c: In function ‘rtnl_create_link’:
net/core/rtnetlink.c:1645:3: warning: passing argument 2 of ‘ops->get_tx_queues’ from incompatible pointer type [enabled by default]
net/core/rtnetlink.c:1645:3: note: expected ‘const struct nlattr **’ but argument is of type ‘struct nlattr **’

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h

index 9b8250152c900ff474cf21211c69f80e6803b15c..bbcfd09934324ba95f05f013d729d579a8e4410d 100644 (file)
@@ -78,7 +78,7 @@ struct rtnl_link_ops {
        int                     (*fill_xstats)(struct sk_buff *skb,
                                               const struct net_device *dev);
        int                     (*get_tx_queues)(struct net *net,
-                                                const struct nlattr *tb[]);
+                                                struct nlattr *tb[]);
 };
 
 extern int     __rtnl_link_register(struct rtnl_link_ops *ops);