tree:
https://github.com/stffrdhrn/linux.git starfive-bad-dcache-flush
head: a5c948a9cc2b8944f00056c067fb7bde19b34843
commit: 76d60389d04dfd86f4a655e3b1e5b2d4dd4cc896 [9/39] drivers/pwm: Add SiFive PWM PTC
driver
config: i386-randconfig-a003-20210523 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/stffrdhrn/linux/commit/76d60389d04dfd86f4a655e3b1e5b2d...
git remote add stffrdhrn
https://github.com/stffrdhrn/linux.git
git fetch --no-tags stffrdhrn starfive-bad-dcache-flush
git checkout 76d60389d04dfd86f4a655e3b1e5b2d4dd4cc896
# 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/pwm/pwm-sifive-ptc.o: in function `sifive_pwm_ptc_apply':
> drivers/pwm/pwm-sifive-ptc.c:125: undefined reference to
`__udivdi3'
> ld: drivers/pwm/pwm-sifive-ptc.c:132: undefined reference to `__udivdi3'
vim +125 drivers/pwm/pwm-sifive-ptc.c
123
124 /* calculate period count */
125 period_data = state->period / pwm_clk_ns;
126
127 if (!state->enabled)
128 /* if is unenable,just set duty_dat to 0 , means low level always */
129 duty_data = 0;
130 else
131 /* calculate duty count*/
132 duty_data = state->duty_cycle / pwm_clk_ns;
133
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org