linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 8956/10161] drivers/watchdog/xilinx_wwdt.c:74: undefined reference to `__udivdi3'
@ 2023-08-15 19:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-15 19:43 UTC (permalink / raw)
  To: Rob Herring
  Cc: oe-kbuild-all, Linux Memory Management List, Wim Van Sebroeck,
	Guenter Roeck

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   98297fc6ecafc0c7eabc5d869279fb27609fcdc1
commit: f1a43aadb5a690e141a3b6700e2a40c1d4dbe088 [8956/10161] watchdog: Enable COMPILE_TEST for more drivers
config: microblaze-randconfig-r021-20230816 (https://download.01.org/0day-ci/archive/20230816/202308160339.zgEoGVDN-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230816/202308160339.zgEoGVDN-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308160339.zgEoGVDN-lkp@intel.com/

All errors (new ones prefixed by >>):

   microblaze-linux-ld: drivers/watchdog/xilinx_wwdt.o: in function `xilinx_wwdt_start':
>> drivers/watchdog/xilinx_wwdt.c:74: undefined reference to `__udivdi3'


vim +74 drivers/watchdog/xilinx_wwdt.c

12984cea1b8c54 Srinivas Neeli 2023-04-20  64  
12984cea1b8c54 Srinivas Neeli 2023-04-20  65  static int xilinx_wwdt_start(struct watchdog_device *wdd)
12984cea1b8c54 Srinivas Neeli 2023-04-20  66  {
12984cea1b8c54 Srinivas Neeli 2023-04-20  67  	struct xwwdt_device *xdev = watchdog_get_drvdata(wdd);
12984cea1b8c54 Srinivas Neeli 2023-04-20  68  	struct watchdog_device *xilinx_wwdt_wdd = &xdev->xilinx_wwdt_wdd;
12984cea1b8c54 Srinivas Neeli 2023-04-20  69  	u64 time_out, closed_timeout, open_timeout;
12984cea1b8c54 Srinivas Neeli 2023-04-20  70  	u32 control_status_reg;
12984cea1b8c54 Srinivas Neeli 2023-04-20  71  
12984cea1b8c54 Srinivas Neeli 2023-04-20  72  	/* Calculate timeout count */
12984cea1b8c54 Srinivas Neeli 2023-04-20  73  	time_out = xdev->freq * wdd->timeout;
12984cea1b8c54 Srinivas Neeli 2023-04-20 @74  	closed_timeout = (time_out * xdev->close_percent) / 100;
12984cea1b8c54 Srinivas Neeli 2023-04-20  75  	open_timeout = time_out - closed_timeout;
12984cea1b8c54 Srinivas Neeli 2023-04-20  76  	wdd->min_hw_heartbeat_ms = xdev->close_percent * 10 * wdd->timeout;
12984cea1b8c54 Srinivas Neeli 2023-04-20  77  
12984cea1b8c54 Srinivas Neeli 2023-04-20  78  	spin_lock(&xdev->spinlock);
12984cea1b8c54 Srinivas Neeli 2023-04-20  79  
12984cea1b8c54 Srinivas Neeli 2023-04-20  80  	iowrite32(XWWDT_MWR_MASK, xdev->base + XWWDT_MWR_OFFSET);
12984cea1b8c54 Srinivas Neeli 2023-04-20  81  	iowrite32(~(u32)XWWDT_ESR_WEN_MASK, xdev->base + XWWDT_ESR_OFFSET);
12984cea1b8c54 Srinivas Neeli 2023-04-20  82  	iowrite32((u32)closed_timeout, xdev->base + XWWDT_FWR_OFFSET);
12984cea1b8c54 Srinivas Neeli 2023-04-20  83  	iowrite32((u32)open_timeout, xdev->base + XWWDT_SWR_OFFSET);
12984cea1b8c54 Srinivas Neeli 2023-04-20  84  
12984cea1b8c54 Srinivas Neeli 2023-04-20  85  	/* Enable the window watchdog timer */
12984cea1b8c54 Srinivas Neeli 2023-04-20  86  	control_status_reg = ioread32(xdev->base + XWWDT_ESR_OFFSET);
12984cea1b8c54 Srinivas Neeli 2023-04-20  87  	control_status_reg |= XWWDT_ESR_WEN_MASK;
12984cea1b8c54 Srinivas Neeli 2023-04-20  88  	iowrite32(control_status_reg, xdev->base + XWWDT_ESR_OFFSET);
12984cea1b8c54 Srinivas Neeli 2023-04-20  89  
12984cea1b8c54 Srinivas Neeli 2023-04-20  90  	spin_unlock(&xdev->spinlock);
12984cea1b8c54 Srinivas Neeli 2023-04-20  91  
12984cea1b8c54 Srinivas Neeli 2023-04-20  92  	dev_dbg(xilinx_wwdt_wdd->parent, "Watchdog Started!\n");
12984cea1b8c54 Srinivas Neeli 2023-04-20  93  
12984cea1b8c54 Srinivas Neeli 2023-04-20  94  	return 0;
12984cea1b8c54 Srinivas Neeli 2023-04-20  95  }
12984cea1b8c54 Srinivas Neeli 2023-04-20  96  

:::::: The code at line 74 was first introduced by commit
:::::: 12984cea1b8c54104f8ac7f5609dfcc0752ad741 watchdog: xilinx_wwdt: Add Versal window watchdog support

:::::: TO: Srinivas Neeli <srinivas.neeli@amd.com>
:::::: CC: Wim Van Sebroeck <wim@linux-watchdog.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-15 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-15 19:43 [linux-next:master 8956/10161] drivers/watchdog/xilinx_wwdt.c:74: undefined reference to `__udivdi3' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox