]> git.baikalelectronics.ru Git - kernel.git/commit
net, uapi: fix -Wpointer-arith warnings
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 3 Oct 2019 20:29:24 +0000 (23:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 21:25:17 +0000 (14:25 -0700)
commitd64f1f6e07fce4818c76955ae2b976525a924bfc
treee6ba98654575733f5f25616e79b587931520e99c
parent37c4236888a3aff9f43e924d09ba9bb4caa53612
net, uapi: fix -Wpointer-arith warnings

Add casts to fix these warnings:

./usr/include/linux/netfilter_arp/arp_tables.h:200:19: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
./usr/include/linux/netfilter_bridge/ebtables.h:197:19: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
./usr/include/linux/netfilter_ipv4/ip_tables.h:223:19: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
./usr/include/linux/netfilter_ipv6/ip6_tables.h:263:19: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
./usr/include/linux/tipc_config.h:310:28: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
./usr/include/linux/tipc_config.h:410:24: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
./usr/include/linux/virtio_ring.h:170:16: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]

Those are theoretical probably but kernel doesn't control compiler flags
in userspace.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/netfilter_arp/arp_tables.h
include/uapi/linux/netfilter_bridge/ebtables.h
include/uapi/linux/netfilter_ipv4/ip_tables.h
include/uapi/linux/netfilter_ipv6/ip6_tables.h
include/uapi/linux/tipc_config.h
include/uapi/linux/virtio_ring.h