Skip to content

Commit

Permalink
rtnetlink: ops->get_tx_queue() cannot take a const 'tb'.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davem330 committed Apr 13, 2012
1 parent 2a06b40 commit be38395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/rtnetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be38395

Please sign in to comment.