From nobody Wed Jun 17 05:14:20 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 E0CD13B6350; Mon, 27 Apr 2026 19:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777316712; cv=none; b=k5v7gvyq8j2wgU+9q+w/z6leauiQ+vexDIfrOb5TLCDZBm5no5ORBF+6dbvde1iXAZbghORq/M9ynpnHTHCvw5JJECDqQbz7r1QDvo4Ox9+aAL4ucgSMf/F3+B5HRnHPnxy5IC0O2GHI3GNPasA0KImOPmTuecHet6wqnxCEmrw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777316712; c=relaxed/simple; bh=dhAGKyPK4hrEDqJ6jU+pj8bhncTQCdujnTe+MJQYw8g=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=YiGa1hdeeUCAVSjcrUHHz7GyUUoru4hjjcBfJisFr+Y5mC6MJnIVGqR5DOCOdtqYp1NDHJF2ibdWcTLcgCjqdLuNjNpz8Hby2VS33OOSk1Xqar4q8BntgQJtrUGhnssSevi7C5+6YBquxTSieE704b66N+wcZstK10GCiiClcnY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XsUyUBcF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=lwtNYUu+; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XsUyUBcF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="lwtNYUu+" Date: Mon, 27 Apr 2026 19:05:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777316709; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nLwJF+jAT4LYNRtzwY3maoZmn5w9a8qT6LqTugkVkU4=; b=XsUyUBcF1vdScvBU2FasNxyUF8YJ1/1OX/IqB2CKFcn3vFoyimNljalA4t4OwJ4oN1JnbI QCwgdY4g2biSk7agNtajOFVXoPieMkgrl8gE5r58AyyFl/xRz2reHgw57PvIedd13zjsa7 znRyKkwqTb6FcY+w9Qlh6Fd94+s2nrxraFL99id+X7VKW1I+C23SX61HbkBJMGNgyCpxoQ 58TRYu4DcpxJJVMdMExNm4cfQ9C9uoyOH0rn11KlN3cp2aJ/9yjMGvTA+y7o3HoONnzf4X Q/s0okz+isqiDiUCnDN4ZBKcO1FBoX3KzN7xRssmCztiqjfmMdoIAIdeerQSSQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777316709; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nLwJF+jAT4LYNRtzwY3maoZmn5w9a8qT6LqTugkVkU4=; b=lwtNYUu+sQLHSV4FHisyLu0WfNQoa3inNypqnFDG5W+/lMWEhnLeR+G+lOOki4o+1S/XBW bMHW8atpZpHPLuDA== From: "tip-bot2 for Sean Christopherson" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/misc] x86/bug: Put HAVE_ARCH_BUG_FORMAT_ARGS WARN definitions inside __ASSEMBLER__ Cc: Yan Zhao , Sean Christopherson , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260423145419.459988-3-seanjc@google.com> References: <20260423145419.459988-3-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177731670556.3521451.11956564837762010728.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/misc branch of tip: Commit-ID: 23aea3c539a62ab97ca3aecf41d590d91f2911fc Gitweb: https://git.kernel.org/tip/23aea3c539a62ab97ca3aecf41d590d91= f2911fc Author: Sean Christopherson AuthorDate: Thu, 23 Apr 2026 07:54:18 -07:00 Committer: Dave Hansen CommitterDate: Mon, 27 Apr 2026 12:02:57 -07:00 x86/bug: Put HAVE_ARCH_BUG_FORMAT_ARGS WARN definitions inside __ASSEMBLER__ Extend the !assembly #ifdef guarding x86's custom WARN helpers to cover the WARN macros themselves, as they aren't assembly friendly. This helps make it clear that things like __WARN_validate_printf() don't need a dummy definition for assembly code. No functional change intended. Suggested-by: Yan Zhao Signed-off-by: Sean Christopherson Signed-off-by: Dave Hansen Link: https://patch.msgid.link/20260423145419.459988-3-seanjc@google.com --- arch/x86/include/asm/bug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/bug.h b/arch/x86/include/asm/bug.h index bf3c802..23ab054 100644 --- a/arch/x86/include/asm/bug.h +++ b/arch/x86/include/asm/bug.h @@ -154,7 +154,6 @@ struct arch_va_list { }; extern void *__warn_args(struct arch_va_list *args, struct pt_regs *regs); static __always_inline __printf(1, 2) void __WARN_validate_printf(const ch= ar *fmt, ...) { } -#endif /* __ASSEMBLER__ */ =20 #define __WARN_bug_entry(flags, format) ({ \ struct bug_entry *bug; \ @@ -189,6 +188,7 @@ do { \ } \ __ret_warn_on; \ }) +#endif /* __ASSEMBLER__ */ =20 #endif /* HAVE_ARCH_BUG_FORMAT_ARGS */ =20