linux/arch/openrisc
Brian Masney a729596086 openrisc: define arch-specific version of nop()
[ Upstream commit 0dfffa5479 ]

When compiling a driver written for MIPS on OpenRISC that uses the nop()
function, it fails due to the following error:

    drivers/watchdog/pic32-wdt.c: Assembler messages:
    drivers/watchdog/pic32-wdt.c:125: Error: unrecognized instruction `nop'

The driver currently uses the generic version of nop() from
include/asm-generic/barrier.h:

    #ifndef nop
    #define nop()   asm volatile ("nop")
    #endif

Let's fix this on OpenRISC by defining an architecture-specific version
of nop().

This was tested by performing an allmodconfig openrisc cross compile on
an aarch64 host.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601180236.BVy480We-lkp@intel.com/
Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:20:18 -05:00
..
boot openrisc: migrate to the generic rule for built-in DTB 2025-01-14 17:17:15 +00:00
configs Ext4 bug fixes for 6.18-rc2, including 2025-10-15 07:51:57 -07:00
include openrisc: define arch-specific version of nop() 2026-03-04 07:20:18 -05:00
kernel OpenRISC updates for 6.18 2025-10-05 10:02:54 -07:00
lib openrisc/delay: Add include to fix symbol not declared warning 2022-05-23 17:15:49 +09:00
mm OpenRISC updates for 6.18 2025-10-05 10:02:54 -07:00
Kbuild openrisc: migrate to the generic rule for built-in DTB 2025-01-14 17:17:15 +00:00
Kconfig openrisc: Add jump label support 2025-09-11 11:27:59 +01:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00