tree:
https://github.com/jpirko/linux_mlxsw net_next_queue
head: 155708977245e88ae7b14ead8238a83ad007743d
commit: 4a9b9f5dbabac830cad950a4b25d218e2c515541 [12/45] netdevsim: Add dummy psample
implementation
config: i386-randconfig-a015-20210216 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/jpirko/linux_mlxsw/commit/4a9b9f5dbabac830cad950a4b25d...
git remote add jpirko-mlxsw
https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw net_next_queue
git checkout 4a9b9f5dbabac830cad950a4b25d218e2c515541
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/net/netdevsim/psample.o: in function `nsim_dev_psample_md_prepare':
> drivers/net/netdevsim/psample.c:97: undefined reference to
`__umoddi3'
> ld: drivers/net/netdevsim/psample.c:105: undefined reference to `__umoddi3'
vim +97 drivers/net/netdevsim/psample.c
80
81 static void nsim_dev_psample_md_prepare(const struct nsim_dev_psample *psample,
82 struct psample_metadata *md)
83 {
84 md->trunc_size = psample->trunc_size;
85 md->in_ifindex = psample->in_ifindex;
86 md->out_ifindex = psample->out_ifindex;
87
88 if (psample->out_tc != NSIM_PSAMPLE_INVALID_TC) {
89 md->out_tc = psample->out_tc;
90 md->out_tc_valid = 1;
91 }
92
93 if (psample->out_tc_occ_max) {
94 u64 out_tc_occ;
95
96 get_random_bytes(&out_tc_occ, sizeof(u64));
97 md->out_tc_occ = out_tc_occ % psample->out_tc_occ_max;
98 md->out_tc_occ_valid = 1;
99 }
100
101 if (psample->latency_max) {
102 u64 latency;
103
104 get_random_bytes(&latency, sizeof(u64));
105 md->latency = latency % psample->latency_max;
106 md->latency_valid = 1;
107 }
108 }
109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org