[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202001252103.QQyJje0a%lkp@intel.com>
Date: Sat, 25 Jan 2020 21:00:06 +0800
From: kbuild test robot <lkp@...el.com>
To: Niu Xilei <niu_xilei@....com>
Cc: kbuild-all@...ts.01.org, netdev@...r.kernel.org
Subject: [net-next:master 7/66] net/core/pktgen.c:2368: undefined reference
to `__umoddi3'
Hi Niu,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 6ec8b6cd79a4360e375da99d848d63f8d4fb08b3
commit: 7786a1af2a6bceb07860ec720e74714004438834 [7/66] pktgen: Allow configuration of IPv6 source address range
config: i386-randconfig-c003-20200125 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 7786a1af2a6bceb07860ec720e74714004438834
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
ld: net/core/pktgen.o: in function `set_src_in6_addr':
>> net/core/pktgen.c:2368: undefined reference to `__umoddi3'
vim +2368 net/core/pktgen.c
2345
2346 /* generate ipv6 source addr */
2347 static void set_src_in6_addr(struct pktgen_dev *pkt_dev)
2348 {
2349 u64 min6, max6, rand, i;
2350 struct in6_addr addr6;
2351 __be64 addr_l, *t;
2352
2353 min6 = pkt_dev->min_in6_l;
2354 max6 = pkt_dev->max_in6_l;
2355
2356 /* only generate source address in least significant 64 bits range
2357 * most significant 64 bits must be equal
2358 */
2359 if (pkt_dev->max_in6_h != pkt_dev->min_in6_h || min6 >= max6)
2360 return;
2361
2362 addr6 = pkt_dev->min_in6_saddr;
2363 t = (__be64 *)addr6.s6_addr + 1;
2364
2365 if (pkt_dev->flags & F_IPSRC_RND) {
2366 do {
2367 prandom_bytes(&rand, sizeof(rand));
> 2368 rand = rand % (max6 - min6) + min6;
2369 addr_l = cpu_to_be64(rand);
2370 memcpy(t, &addr_l, 8);
2371 } while (ipv6_addr_loopback(&addr6) ||
2372 ipv6_addr_v4mapped(&addr6) ||
2373 ipv6_addr_is_multicast(&addr6));
2374 } else {
2375 addr6 = pkt_dev->cur_in6_saddr;
2376 i = be64_to_cpu(*t);
2377 if (++i > max6)
2378 i = min6;
2379 addr_l = cpu_to_be64(i);
2380 memcpy(t, &addr_l, 8);
2381 }
2382 pkt_dev->cur_in6_saddr = addr6;
2383 }
2384
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (29666 bytes)
Powered by blists - more mailing lists