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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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@xxxxxxxxxxxxx>

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(-)

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);

?τθΊ{.nΗ+?·???­?+%?Λ?±ιέΆ??w?Ί{.nΗ+?·§zΧ^Ώψ§Ά?ʽά¨}©?²Ζ zΪ&j:+v?¨ώψ―ω?w?ώ?ΰ2?ή?¨θ­Ϊ&ʼ)ίʽ«aΆΪ??ϋΰzΏδzΉή?ϊ+?ω???έʼj??wθώf

[Linux Kernel Discussion]     [Ethernet Bridging]     [Linux Wireless Networking]     [Linux Bluetooth Networking]     [Linux Networking Users]     [VLAN]     [Git]     [IETF Annouce]     [Linux Assembly]     [Security]     [Bugtraq]     [Photo]     [Singles Social Networking]     [Yosemite Information]     [MIPS Linux]     [ARM Linux Kernel]     [ARM Linux]     [Linux Virtualization]     [Linux Security]     [Linux IDE]     [Linux RAID]     [Linux SCSI]     [Free Dating]

Add to Google Powered by Linux