* [PATCH net-next] vxlan: Use proper endian type for vni in vxlan[6]_xmit_skb
@ 2015-07-22 15:08 Thomas Graf
2015-07-26 23:33 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Graf @ 2015-07-22 15:08 UTC (permalink / raw)
To: davem; +Cc: netdev
Silences the following sparse warnings:
drivers/net/vxlan.c:1818:21: warning: incorrect type in assignment (different base types)
drivers/net/vxlan.c:1818:21: expected restricted __be32 [usertype] vx_vni
drivers/net/vxlan.c:1818:21: got unsigned int [unsigned] [usertype] vni
drivers/net/vxlan.c:2014:58: warning: incorrect type in argument 11 (different base types)
drivers/net/vxlan.c:2014:58: expected unsigned int [unsigned] [usertype] vni
drivers/net/vxlan.c:2014:58: got restricted __be32 [usertype] <noident>
Fixes: 614732eaa12d ("openvswitch: Use regular VXLAN net_device device")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
---
drivers/net/vxlan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index e9feefb..81f0f24 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1686,7 +1686,7 @@ static int vxlan6_xmit_skb(struct dst_entry *dst, struct sock *sk,
struct sk_buff *skb,
struct net_device *dev, struct in6_addr *saddr,
struct in6_addr *daddr, __u8 prio, __u8 ttl,
- __be16 src_port, __be16 dst_port, __u32 vni,
+ __be16 src_port, __be16 dst_port, __be32 vni,
struct vxlan_metadata *md, bool xnet, u32 vxflags)
{
struct vxlanhdr *vxh;
@@ -1771,7 +1771,7 @@ err:
static int vxlan_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
__be32 src, __be32 dst, __u8 tos, __u8 ttl, __be16 df,
- __be16 src_port, __be16 dst_port, __u32 vni,
+ __be16 src_port, __be16 dst_port, __be32 vni,
struct vxlan_metadata *md, bool xnet, u32 vxflags)
{
struct vxlanhdr *vxh;
--
2.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] vxlan: Use proper endian type for vni in vxlan[6]_xmit_skb
2015-07-22 15:08 [PATCH net-next] vxlan: Use proper endian type for vni in vxlan[6]_xmit_skb Thomas Graf
@ 2015-07-26 23:33 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-07-26 23:33 UTC (permalink / raw)
To: tgraf; +Cc: netdev
From: Thomas Graf <tgraf@suug.ch>
Date: Wed, 22 Jul 2015 17:08:42 +0200
> Silences the following sparse warnings:
> drivers/net/vxlan.c:1818:21: warning: incorrect type in assignment (different base types)
> drivers/net/vxlan.c:1818:21: expected restricted __be32 [usertype] vx_vni
> drivers/net/vxlan.c:1818:21: got unsigned int [unsigned] [usertype] vni
> drivers/net/vxlan.c:2014:58: warning: incorrect type in argument 11 (different base types)
> drivers/net/vxlan.c:2014:58: expected unsigned int [unsigned] [usertype] vni
> drivers/net/vxlan.c:2014:58: got restricted __be32 [usertype] <noident>
>
> Fixes: 614732eaa12d ("openvswitch: Use regular VXLAN net_device device")
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Thomas Graf <tgraf@suug.ch>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-26 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 15:08 [PATCH net-next] vxlan: Use proper endian type for vni in vxlan[6]_xmit_skb Thomas Graf
2015-07-26 23:33 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).