drivers/watchdog/pic32-wdt.c:125: Error: unrecognized instruction `nop'
kernel test robot
build botHi Brian,
First bad commit (maybe != root cause):
tree: https://github.com/masneyb/linux mips-compile-pic32-drivers head: a426e474e28b73078378d837ec86f55a5a2e7955 commit: cea2910f3fcc8d60410b0a0ef0ad76ba6c58fa8c [24/29] watchdog: pic32: allow drivers to be compiled on all architectures with COMPILE_TEST config: openrisc-allmodconfig (https://download.01.org/0day-ci/archive/20260118/[email protected]/config) compiler: or1k-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260118/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/watchdog/pic32-wdt.c: Assembler messages:
>> drivers/watchdog/pic32-wdt.c:125: Error: unrecognized instruction `nop' -- drivers/watchdog/pic32-dmt.c: Assembler messages: >> drivers/watchdog/pic32-dmt.c:58: Error: unrecognized instruction `nop'
vim +125 drivers/watchdog/pic32-wdt.c
8f91fc56bc439a Joshua Henderson 2016-02-26 114
8f91fc56bc439a Joshua Henderson 2016-02-26 115 static int pic32_wdt_stop(struct watchdog_device *wdd)
8f91fc56bc439a Joshua Henderson 2016-02-26 116 {
8f91fc56bc439a Joshua Henderson 2016-02-26 117 struct pic32_wdt *wdt = watchdog_get_drvdata(wdd);
8f91fc56bc439a Joshua Henderson 2016-02-26 118
8f91fc56bc439a Joshua Henderson 2016-02-26 119 writel(WDTCON_ON, PIC32_CLR(wdt->regs + WDTCON_REG));
8f91fc56bc439a Joshua Henderson 2016-02-26 120
8f91fc56bc439a Joshua Henderson 2016-02-26 121 /*
8f91fc56bc439a Joshua Henderson 2016-02-26 122 * Cannot touch registers in the CPU cycle following clearing the
8f91fc56bc439a Joshua Henderson 2016-02-26 123 * ON bit.
8f91fc56bc439a Joshua Henderson 2016-02-26 124 */
8f91fc56bc439a Joshua Henderson 2016-02-26 @125 nop();
8f91fc56bc439a Joshua Henderson 2016-02-26 126
8f91fc56bc439a Joshua Henderson 2016-02-26 127 return 0;
8f91fc56bc439a Joshua Henderson 2016-02-26 128 }
8f91fc56bc439a Joshua Henderson 2016-02-26 129 :::::: The code at line 125 was first introduced by commit
:::::: 8f91fc56bc439a5baefae598040d263f48526596 watchdog: pic32-wdt: Add PIC32 watchdog driver
:::::: TO: Joshua Henderson <[email protected]> :::::: CC: Ralf Baechle <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 16 lines · kernel test robot
Hi Brian,
First bad commit (maybe != root cause):
tree: https://github.com/masneyb/linux mips-compile-pic32-drivers head: a426e474e28b73078378d837ec86f55a5a2e7955 commit: cea2910f3fcc8d60410b0a0ef0ad76ba6c58fa8c [24/29] watchdog: pic32: allow drivers to be compiled on all architectures with COMPILE_TEST config: openrisc-allmodconfig (https://download.01.org/0day-ci/archive/20260118/[email protected]/config) compiler: or1k-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260118/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 7 lines
All errors (new ones prefixed by >>):
drivers/watchdog/pic32-wdt.c: Assembler messages:Quoted 1 line
Quoted 1 line
drivers/watchdog/pic32-wdt.c:125: Error: unrecognized instruction `nop'--
drivers/watchdog/pic32-dmt.c: Assembler messages:Quoted 1 line
Quoted 1 line
drivers/watchdog/pic32-dmt.c:58: Error: unrecognized instruction `nop'
Thanks for the CI on my branch! I am planning in a few weeks to post various patches to allow some of these drivers to be compiled on all architectures, rather than just MIPS. I just posted a patch to the linux-openrisc list that adds an arch-specific version of the nop() function. I included the Reported-by and Closes tags above.
https://lore.kernel.org/openrisc/[email protected]/T/#u
Brian