From: kernel test robot <lkp@intel.com>
To: Rob Herring <robh@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>
Subject: [linux-next:master 8956/10161] drivers/watchdog/xilinx_wwdt.c:74: undefined reference to `__udivdi3'
Date: Wed, 16 Aug 2023 03:43:58 +0800 [thread overview]
Message-ID: <202308160339.zgEoGVDN-lkp@intel.com> (raw)
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
reply other threads:[~2023-08-15 19:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202308160339.zgEoGVDN-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--cc=linux@roeck-us.net \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.org \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox