* [net-next:master 7/66] net/core/pktgen.c:2368: undefined reference to `__umoddi3'
@ 2020-01-25 13:00 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-01-25 13:00 UTC (permalink / raw)
To: Niu Xilei; +Cc: kbuild-all, netdev
[-- Attachment #1: Type: text/plain, Size: 2230 bytes --]
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@intel.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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29666 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [net-next:master 7/66] net/core/pktgen.c:2368: undefined reference to `__umoddi3'
@ 2020-01-25 13:00 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-01-25 13:00 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2300 bytes --]
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@intel.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(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29666 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-25 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-25 13:00 [net-next:master 7/66] net/core/pktgen.c:2368: undefined reference to `__umoddi3' kbuild test robot
2020-01-25 13:00 ` kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.