vxlan: Use proper endian type for vni in vxlan[6]_xmit_skb
authorThomas Graf <tgraf@suug.ch>
Wed, 22 Jul 2015 15:08:42 +0000 (17:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jul 2015 23:33:26 +0000 (16:33 -0700)
commit6b6948dda798637aea237df0d0c8bcba8fa653bc
tree7e0d6b392f520d056a66dbee761bbd11bdde20a2
parent1d70ec70ef3b5e3e5536d21d8fc82b25aba62d97
vxlan: Use proper endian type for vni in vxlan[6]_xmit_skb

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c