From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D313CCA9EBE for ; Fri, 9 Oct 2026 22:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BAR4DaaCa8Ck8uBRIBiX9KsGBDTgqpmskGktukf8Jyc=; b=kyAx5Vc1Kb1i0XmeMeFtE8SGLJ 9PFhNMg6d1lGBAeWs8lHp5DdfIH9iqvFnascECESOTJmH97QHYGNlh83gy9zIR0s4xmx4ZQmNuQi8 9yhCTHoMwWSmVM/X+HNZJEz1fmlL7vWGTdaZdeKHGgARAoQO9No6EZWS1a99YizmKpoBsrE+19WIo B19DJ6kbhrPxgxsH5HE7o7HLdZ/nF3BRoBwiSHpFfP3rPeKOGuMLJssnzOi6BnKv2GoWZL6lH4wwK JrKhDYmM3b0SWnOjxrE5elyh7P0UsGP32qn7q5d/ITIdjHCFqjHJ6vwgbV06OCKFdpjhokf/VJH4o qbcaOE5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xFIyf-00000007HHP-34nE; Fri, 09 Oct 2026 22:22:09 +0000 Received: from chamillionaire.breakpoint.cc ([2a0a:51c0:0:237:300::1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xFIyb-00000007HE6-2OAo for linux-arm-kernel@lists.infradead.org; Fri, 09 Oct 2026 22:22:07 +0000 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breakpoint.cc; s=2025; t=1791584523; h=from:from: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=BAR4DaaCa8Ck8uBRIBiX9KsGBDTgqpmskGktukf8Jyc=; b=jaW09TrpCg8c+82Z/XV8yfenzdRco1I8932KD0/jDiEHH8qHuxR/FsaispfaoNTU4OpJ+m TY+XLVjytQo+vTZdpHJ059wQhUOyiG7SOfkDPcJoW3ckxiQH5ijHaMtNYPcT0dTMoToy07 Hpx3gqVzf/D9jJ2dGc7GUNjRDSBq0dqlCKTiAEPFPzCQZlWH9eAlYeCdsgfmi6iHpCYnkb Alhsec9mhZVxQU5ppYy4HfM/O/j7va7Nx89Q7Ghhs3Nr95RzorkZ2uS75iwqzj8JseEArF eQQtAbBv/Ki19T3Udl+Q9h/JJkp0Tk7AGjpPTWjL8jzfcDwodkXEPJqP+lWyeQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=breakpoint.cc; s=2025e; t=1791584523; h=from:from: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=BAR4DaaCa8Ck8uBRIBiX9KsGBDTgqpmskGktukf8Jyc=; b=kAlnoPKLINDV36lodnA5y2L8GDwPgNdEyFPN5sgBGHUa871Pen9ORf/JQ1lSQcG1Bq/gqj 3Beuv/KXzmoGv/Dw== To: linux-arm-kernel@lists.infradead.org Cc: Sebastian Andrzej Siewior , Russell King , Arnd Bergmann Subject: [PATCH 04/11] ARM: BUG: Move file/ line encoding into a custom macro Date: Sat, 10 Oct 2026 00:21:11 +0200 Message-ID: <20261010-arm_warning-v1-4-ddf4be42ae0d@breakpoint.cc> In-Reply-To: <20261010-arm_warning-v1-0-ddf4be42ae0d@breakpoint.cc> References: <20261010-arm_warning-v1-0-ddf4be42ae0d@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261009_152205_754692_A6A5B703 X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Move the filename encoding and the line number into a custom macro named _BUG_VERBOSE_LINE(). This makes it simpler to add this entries depending on CONFIG_DEBUG_BUGVERBOSE. Signed-off-by: Sebastian Andrzej Siewior --- arch/arm/include/asm/bug.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/bug.h b/arch/arm/include/asm/bug.h index 1bb215367eed2..18dc13a0509f6 100644 --- a/arch/arm/include/asm/bug.h +++ b/arch/arm/include/asm/bug.h @@ -27,18 +27,21 @@ =20 #ifdef CONFIG_DEBUG_BUGVERBOSE =20 -#define __BUG__LINE(__file, __line, __value) \ - 1: ; \ - BUG_ENCODING(); \ - .pushsection __bug_table,"aw"; \ - .align 2; \ - .word 1b; \ +#define _BUG_VERBOSE_LINE(__file, __line) \ .pushsection .rodata.str, "aMS", %progbits, 1; \ 2: .asciz __file; \ .popsection; \ 3: \ .word 2b; \ .hword __line; \ + +#define __BUG__LINE(__file, __line, __value) \ + 1: ; \ + BUG_ENCODING(); \ + .pushsection __bug_table,"aw"; \ + .align 2; \ + .word 1b; \ + _BUG_VERBOSE_LINE(__file, __line); \ .hword 0; \ .popsection; =20 --=20 2.55.0