[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191004.142529.870317230438336454.davem@davemloft.net>
Date: Fri, 04 Oct 2019 14:25:29 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: adobriyan@...il.com
Cc: pablo@...filter.org, kadlec@...filter.org, fw@...len.de,
netfilter-devel@...r.kernel.org, jon.maloy@...csson.com,
ying.xue@...driver.com, netdev@...r.kernel.org, mst@...hat.com,
jasowang@...hat.com, virtualization@...ts.linux-foundation.org
Subject: Re: [PATCH net-next] net, uapi: fix -Wpointer-arith warnings
From: Alexey Dobriyan <adobriyan@...il.com>
Date: Thu, 3 Oct 2019 23:29:24 +0300
> 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@...il.com>
Applied.
Powered by blists - more mailing lists