From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F7F435AC12; Sat, 28 Feb 2026 17:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300267; cv=none; b=HLbY0DGb5HJQWFEU512FrvHJm3zfwL/6EUwtjti/KpDuVhucpXl4RCrKbcykhRzUoL/BcTkv4Mc52DsIMkHHWgDOxsbefs/9zMW0Xz4zDBRzjz5nqpd5MADMO3IKzKqTp0+MVTQqCbiQQ/RQtL9C47nxQiAv1CNRtHxwkMa7vRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300267; c=relaxed/simple; bh=cSWzlnpqidfMV0fh8o4QeLP6rReA62/EY2yPIuusBFI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bOiA68J+bqgkFxZ0iSPCzOUYtrIfk2YZZqGUR6907MpQNjNw1ANK2173yKwW6j4GV1JN/R3VvhKB2obl9MLztegU/s36XwDKCQXUO7szT/yGdUSy4EYdeIkqwazymGWGVLuTcJLlN1Eoww0yypISjLI3phY0L22U5viDSGWuOeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SbpZxkBV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SbpZxkBV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7F5EC19423; Sat, 28 Feb 2026 17:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300267; bh=cSWzlnpqidfMV0fh8o4QeLP6rReA62/EY2yPIuusBFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SbpZxkBVdKKeNWqS+9ShxxaCAWG6r+2snkB83D3liHvNO1qulfl+WCDN+NnYpt1wP xa7eGaenOk/TTymHbZM/mX1s/cDxa/iaQumHplt7eHV9qle7sQETr5B5KMPAshq99k uBGnXgYiO/G8hEJvrGK6YmWjkRrA5wQqIrGCIvvJ5YFDbh2uyHUk+TgGNJYtzgkY1x aF2ILVgNCoDo4rfUTS2Vo8C5Hk3Tc/8M3DmMlOL+3Jw4sMwwhwEuzYL6jJyQf1PyYr JPP4wfd/na7Qe7crXvt0T0MNvwy5iUkOOEDAA/ECN27HRDPc1jF4EjQ2m0GBL3awq2 l4nvRO6kCWYVA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Brian Masney , kernel test robot , Stafford Horne , Sasha Levin Subject: [PATCH 6.19 293/844] openrisc: define arch-specific version of nop() Date: Sat, 28 Feb 2026 12:23:26 -0500 Message-ID: <20260228173244.1509663-294-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Brian Masney [ Upstream commit 0dfffa5479d6260d04d021f69203b1926f73d889 ] 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 Closes: https://lore.kernel.org/oe-kbuild-all/202601180236.BVy480We-lkp@intel.com/ Signed-off-by: Brian Masney Signed-off-by: Stafford Horne Signed-off-by: Sasha Levin --- arch/openrisc/include/asm/barrier.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/openrisc/include/asm/barrier.h b/arch/openrisc/include/asm/barrier.h index 7538294721bed..8e592c9909023 100644 --- a/arch/openrisc/include/asm/barrier.h +++ b/arch/openrisc/include/asm/barrier.h @@ -4,6 +4,8 @@ #define mb() asm volatile ("l.msync" ::: "memory") +#define nop() asm volatile ("l.nop") + #include #endif /* __ASM_BARRIER_H */ -- 2.51.0