[toke:xdp-queueing-02 5/11] ld.lld: error: duplicate symbol: pifo_map_dequeue

From: kernel test robot
Date: Sun Feb 13 2022 - 17:02:21 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-02
head: 26dde94b299bc277f7a99a99ba64b4363964e833
commit: 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37 [5/11] Add a PIFO map type for queueing packets
config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220214/202202140559.L2j44zUI-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git/commit/?id=34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37
git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
git fetch --no-tags toke xdp-queueing-02
git checkout 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

In file included from net/socket.c:55:
In file included from include/linux/bpf-cgroup.h:5:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/socket.c:2206:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
int max_optlen;
^
2 warnings generated.
--
In file included from net/core/sock.c:133:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
1 warning generated.
--
In file included from net/core/dev.c:95:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/core/dev.c:4971:1: warning: unused function 'sch_handle_ingress' [-Wunused-function]
sch_handle_ingress(struct sk_buff *skb, struct packet_type **pt_prev, int *ret,
^
net/core/dev.c:5120:19: warning: unused function 'nf_ingress' [-Wunused-function]
static inline int nf_ingress(struct sk_buff *skb, struct packet_type **pt_prev,
^
3 warnings generated.
--
In file included from net/core/net-traces.c:35:
In file included from include/trace/events/tcp.h:12:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
In file included from net/core/net-traces.c:50:
In file included from include/trace/events/neigh.h:255:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:873:
include/trace/events/neigh.h:42:20: warning: variable 'pin6' set but not used [-Wunused-but-set-variable]
struct in6_addr *pin6;
^
In file included from net/core/net-traces.c:50:
In file included from include/trace/events/neigh.h:255:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:107:
include/trace/events/neigh.h:42:20: warning: variable 'pin6' set but not used [-Wunused-but-set-variable]
struct in6_addr *pin6;
^
3 warnings generated.
--
In file included from net/ipv4/route.c:95:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/ipv4/route.c:869:6: warning: variable 'log_martians' set but not used [-Wunused-but-set-variable]
int log_martians;
^
2 warnings generated.
--
In file included from net/ipv4/tcp_output.c:40:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/ipv4/tcp_output.c:188:3: warning: result of comparison of constant -1 with expression of type 'u8' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPACKCOMPRESSED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/ip.h:292:41: note: expanded from macro 'NET_ADD_STATS'
#define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/snmp.h:143:4: note: expanded from macro 'SNMP_ADD_STATS'
this_cpu_add(mib->mibs[field], addend)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:509:33: note: expanded from macro 'this_cpu_add'
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
<scratch space>:148:1: note: expanded from here
this_cpu_add_4
^
arch/x86/include/asm/percpu.h:268:34: note: expanded from macro 'this_cpu_add_4'
#define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:127:31: note: expanded from macro 'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~~~ ^ ~~
2 warnings generated.
--
In file included from net/netfilter/ipvs/ip_vs_core.c:34:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/netfilter/ipvs/ip_vs_core.c:1596:8: warning: variable 'outer_proto' set but not used [-Wunused-but-set-variable]
char *outer_proto = "IPIP";
^
2 warnings generated.
--
In file included from net/netfilter/ipvs/ip_vs_xmit.c:33:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/netfilter/ipvs/ip_vs_xmit.c:107:1: warning: unused function '__mtu_check_toobig_v6' [-Wunused-function]
__mtu_check_toobig_v6(const struct sk_buff *skb, u32 mtu)
^
2 warnings generated.
--
In file included from net/mptcp/options.c:11:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/mptcp/options.c:554:21: warning: parameter 'remaining' set but not used [-Wunused-but-set-parameter]
unsigned int remaining,
^
2 warnings generated.
--
>> ld.lld: error: duplicate symbol: pifo_map_dequeue
>>> defined in net/bluetooth/bluetooth.o(l2cap_core.o)
>>> defined in net/bluetooth/bluetooth.o(l2cap_sock.o)
--
>> ld.lld: error: duplicate symbol: pifo_map_dequeue
>>> defined in net/netfilter/ipset/ip_set.o(ip_set_getport.o)
>>> defined in net/netfilter/ipset/ip_set.o(pfxlen.o)
..

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx