diff mbox

rtnetlink: ops->get_tx_queue() cannot take a const 'tb'.

Message ID 20120413.142201.1695633085407709024.davem@davemloft.net
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

David Miller April 13, 2012, 6:22 p.m. UTC
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>

---

Stephen, please watch your build logs more carefully for stuff like
this in the future, thanks.

 include/net/rtnetlink.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
1.7.7.6
diff mbox

Patch

diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h
index 9b82501..bbcfd09 100644
--- a/include/net/rtnetlink.h
+++ b/include/net/rtnetlink.h
@@ -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);