From patchwork Mon Dec 7 14:31:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11956175 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1EF3C4361B for ; Mon, 7 Dec 2020 14:35:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B155D23600 for ; Mon, 7 Dec 2020 14:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbgLGOfb (ORCPT ); Mon, 7 Dec 2020 09:35:31 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:35657 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbgLGOfa (ORCPT ); Mon, 7 Dec 2020 09:35:30 -0500 Received: from orion.localdomain ([95.114.88.149]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MVaQW-1kcPeP1c3Q-00RY6g; Mon, 07 Dec 2020 15:31:53 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: James.Bottomley@HansenPartnership.com, deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org, jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-um@lists.infradead.org Subject: [PATCH] arch: fix 'unexpected IRQ trap at vector' warnings Date: Mon, 7 Dec 2020 15:31:46 +0100 Message-Id: <20201207143146.30021-1-info@metux.net> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K1:rMUe2CBEB0YZF4A68VUWmrIH1yNW//gd0c/pQGPWmyMpSA2bX4y jHgyHm8GpTs/tCj3iuuCtSypFZR3KU5WIP1wANT4VjPkCyeXDkgjAcw/iCjkQVNTvoUv6E4 JrZlmcRHyCZI3p4cK57xGz5GXFXaLX/TWpGK+yDTovpnj/nUwC/S6xpXVH7lHGsSjlB2fSc SxqVYzYq0T9qMthuTjxCA== X-UI-Out-Filterresults: notjunk:1;V03:K0:J8L0KEQhX2Y=:qF988fCH6y7JnTbLOsOL9Y cDHv4VjCCTnVaS8fRofG82d8RSJyg0hCUZBXe04Vff61i58PpeCe1a25NSCXgSdLDg6l4AElV YnH2BwYLnVCECxT3Z51+SB6AdnfLW9f86zmwUvYDCybaHP87pVrr74FESw5Qn/tQmsFf0c5Ef LuxsO6sry9KpPkeE12sB+AEme9yWHuLzKSmAhyhg2M32AWym+GrEeFvppP4FQUcWAhSqEiD4D sy7cIo41rIkQVIC1ru4tMi8Qrj+q0078gkhR/bm8epdOJvuEf4TGOFfQJRIfOe87AmVL44MXd nzz10f+JCxzpaxI1ZI9FwyaheQN/VGZQlSmyt/CaUCo1PpklvPfaem7nNluAY90S0NcSjU2hF 2x20AgR7e+j2SDxweyivFQa8+fsD3N6cn/YS3jWKoJbaz9UeBSeFqysSyIs7G Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org All archs, except Alpha, print out the irq number in hex, but the message looks like it was a decimal number, which is quite confusing. Fixing this by adding "0x" prefix. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/arm/include/asm/hw_irq.h | 2 +- arch/parisc/include/asm/hardirq.h | 2 +- arch/powerpc/include/asm/hardirq.h | 2 +- arch/s390/include/asm/hardirq.h | 2 +- arch/um/include/asm/hardirq.h | 2 +- arch/x86/kernel/irq.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/hw_irq.h b/arch/arm/include/asm/hw_irq.h index cecc13214ef1..2749f19271d9 100644 --- a/arch/arm/include/asm/hw_irq.h +++ b/arch/arm/include/asm/hw_irq.h @@ -9,7 +9,7 @@ static inline void ack_bad_irq(int irq) { extern unsigned long irq_err_count; irq_err_count++; - pr_crit("unexpected IRQ trap at vector %02x\n", irq); + pr_crit("unexpected IRQ trap at vector 0x%02x\n", irq); } #define ARCH_IRQ_INIT_FLAGS (IRQ_NOREQUEST | IRQ_NOPROBE) diff --git a/arch/parisc/include/asm/hardirq.h b/arch/parisc/include/asm/hardirq.h index 7f7039516e53..c3348af88d3f 100644 --- a/arch/parisc/include/asm/hardirq.h +++ b/arch/parisc/include/asm/hardirq.h @@ -35,6 +35,6 @@ DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member) #define inc_irq_stat(member) this_cpu_inc(irq_stat.member) #define __inc_irq_stat(member) __this_cpu_inc(irq_stat.member) -#define ack_bad_irq(irq) WARN(1, "unexpected IRQ trap at vector %02x\n", irq) +#define ack_bad_irq(irq) WARN(1, "unexpected IRQ trap at vector 0x%02x\n", irq) #endif /* _PARISC_HARDIRQ_H */ diff --git a/arch/powerpc/include/asm/hardirq.h b/arch/powerpc/include/asm/hardirq.h index f133b5930ae1..ec8cf3cf6e49 100644 --- a/arch/powerpc/include/asm/hardirq.h +++ b/arch/powerpc/include/asm/hardirq.h @@ -29,7 +29,7 @@ DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); static inline void ack_bad_irq(unsigned int irq) { - printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq); + printk(KERN_CRIT "unexpected IRQ trap at vector 0x%02x\n", irq); } extern u64 arch_irq_stat_cpu(unsigned int cpu); diff --git a/arch/s390/include/asm/hardirq.h b/arch/s390/include/asm/hardirq.h index dfbc3c6c0674..aaaec5cdd4fe 100644 --- a/arch/s390/include/asm/hardirq.h +++ b/arch/s390/include/asm/hardirq.h @@ -23,7 +23,7 @@ static inline void ack_bad_irq(unsigned int irq) { - printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq); + printk(KERN_CRIT "unexpected IRQ trap at vector 0x%02x\n", irq); } #endif /* __ASM_HARDIRQ_H */ diff --git a/arch/um/include/asm/hardirq.h b/arch/um/include/asm/hardirq.h index b426796d26fd..2a2e6eae034b 100644 --- a/arch/um/include/asm/hardirq.h +++ b/arch/um/include/asm/hardirq.h @@ -15,7 +15,7 @@ typedef struct { #ifndef ack_bad_irq static inline void ack_bad_irq(unsigned int irq) { - printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq); + printk(KERN_CRIT "unexpected IRQ trap at vector 0x%02x\n", irq); } #endif diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index c5dd50369e2f..957c716f2df7 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -37,7 +37,7 @@ atomic_t irq_err_count; void ack_bad_irq(unsigned int irq) { if (printk_ratelimit()) - pr_err("unexpected IRQ trap at vector %02x\n", irq); + pr_err("unexpected IRQ trap at vector 0x%02x\n", irq); /* * Currently unexpected vectors happen only on SMP and APIC.