Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2146545pxu; Fri, 18 Dec 2020 06:38:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlLwcFWHk4QuHvJF5qyYXKqGAAC786if+RuOJWbs/dbHAG8zDLMOkF3y4z5h4FUCcZbMLQ X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr4261112ejb.42.1608302339578; Fri, 18 Dec 2020 06:38:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608302339; cv=none; d=google.com; s=arc-20160816; b=Ls8iXn0L7MzEhs2jacI2AKCkHaGP490LpcvoxSZ1R91ytllmLPxOxz5yIzs1Ihvpp4 zx1LYrFpnXTvtDQlInOoYuaHG8sZ7Y2mYZT8Q8r9fFdYIhcY3s9bKj1UM1LKRQJtBukc yNL9T87pxTnYuZUKI4lMnDOSuI7vjEIC/U8LqZ4ds7dPbCyb/zwbTrvs9iNQs9r9crmt iTNhkddpAjdbo7XV3Ti2b1UYKPj9BM/rsxBJ80aMXHyzwx45+DpUwrEQG/S3LAPDhPNI F4jfOddhzBf94edYcS751nFoXDizl4C+a+rr5HNBcDL42E1CjhdfO537ngai/Sozqphs fayQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=0C9uUHWIUusFLJZx0mPQySY1iSORaj2zEI+LOX8zVN0=; b=wvmph/b+Qv6pv92LEWoO9uHQ2yn7WjV3C4sFm4PS8mXa62h790tPa8nni8zWeV7eOS gLmuifysXNEqppMp6op+56tviv7eLcRA8ckq1OL806viE51Sre4BhdvPUWADsrh4wgJr W+6Tydv4taK0c11LEK01hTv5EmYYLwpZObVnsfEZeG1UuEKdkSiCH8n3K4furPpq7tj5 unbxRsaSE70GyywbvCQKU2YWrAG/ISdXc5fEO4q/t0DQfn91G3kbclfWW4mjsv+ntxE8 bsmjemTl7157J658b32mOTcEeYlLgtNGrKzKcCu2+hUc2ywwB8uRCNXj8mlQR80eN3gm 4P7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si6178121edt.581.2020.12.18.06.38.36; Fri, 18 Dec 2020 06:38:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729206AbgLROhP (ORCPT + 99 others); Fri, 18 Dec 2020 09:37:15 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:59215 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727842AbgLROfK (ORCPT ); Fri, 18 Dec 2020 09:35:10 -0500 Received: from orion.localdomain ([95.115.54.243]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MIMXE-1ktVvH3Qeq-00EO5n; Fri, 18 Dec 2020 15:31:52 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, catalin.marinas@arm.com, will@kernel.org, msalter@redhat.com, jacquiot.aurelien@gmail.com, gerg@linux-m68k.org, geert@linux-m68k.org, tsbogend@alpha.franken.de, James.Bottomley@HansenPartnership.com, deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org, ysato@users.sourceforge.jp, dalias@libc.org, davem@davemloft.net, tglx@linutronix.de, bp@alien8.de, x86@kernel.org, hpa@zytor.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, maz@kernel.org, tony@atomide.com, arnd@arndb.de, linux-alpha@vger.kernel.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 06/23] arch: mips: drop misleading warning on spurious IRQ Date: Fri, 18 Dec 2020 15:31:05 +0100 Message-Id: <20201218143122.19459-7-info@metux.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20201218143122.19459-1-info@metux.net> References: <20201218143122.19459-1-info@metux.net> X-Provags-ID: V03:K1:FGKFVpjRm8i7alCduF6w5xVQ9QBhhI+BcbMoR2xYuHsBqi3HW+a zuZ/nO0yECgUh91EZuccQMI4v9u0fvgFaaXDlnfpg4pNnW+9YPm0m6vFzoP8y3nI/L80U2q tOYG+TtPDtewTmWoSaBjj031Z1xtRhX13X03Cj1R8WbJJ6hRxdjlasrHGXlgq0z0XRCY/7R 7bMVFVy/AwQ9G65ocohFQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:5QbacgAAcV8=:SjlVoKIRpMoJbMDin1Wxmv r7hX0/Hb1uQQh9DWyGtQ4hJ/O7UuoWSZBLXqv3HLbGuwbraALbYBJaVDC8hOM6Rc34+eN5uUd VRtPdFPKbEXn7MPrknDfMOMfZmLIdjknTzIWTnexfB4JFPWnpLPS2uCDscdMklO+Ww0/aBe30 WK8pshbeLhGqWu+4zq5EeVvhjKHOayfwPjMJnG0vngvQQxPP1BmzSm0fNQLZTEARXdkwu2pqE Eear9qZL5q1/abLp+4Wu/OabD7PVErjHqqBocNxuGjo1pGM2bAzuyckbJ44wcZDSvUGHf7l2D ou8BxCqHc2Ss6RnvX/JERqSHQ55352dSyIVht/cmKR8eT9fg35ihrPgOO9fzNj7XQUWwawJOh HR9IQlONZti0Q4+USJXCQTytoyovM/QCwtkXcmv3mUZpColG/mUlBGm0hTFRX Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The warning in ack_bad_irq() is misleading in several ways: * the term "vector" isn't quite correct * the printing format isn't consistent across the archs: some print decimal, some hex, some hex w/o 0x prefix. * the printed linux irq isn't meaningful in all cases - we actually would want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/mips/include/asm/hardirq.h | 3 +-- arch/mips/kernel/irq.c | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/mips/include/asm/hardirq.h b/arch/mips/include/asm/hardirq.h index c977a86c2c65..75444120e6cb 100644 --- a/arch/mips/include/asm/hardirq.h +++ b/arch/mips/include/asm/hardirq.h @@ -10,8 +10,7 @@ #ifndef _ASM_HARDIRQ_H #define _ASM_HARDIRQ_H -extern void ack_bad_irq(unsigned int irq); -#define ack_bad_irq ack_bad_irq +#define ack_bad_irq(irq) #include diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c index 85b6c60f285d..c98be305fab6 100644 --- a/arch/mips/kernel/irq.c +++ b/arch/mips/kernel/irq.c @@ -27,15 +27,6 @@ void *irq_stack[NR_CPUS]; -/* - * 'what should we do if we get a hw irq event on an illegal vector'. - * each architecture has to answer this themselves. - */ -void ack_bad_irq(unsigned int irq) -{ - printk("unexpected IRQ # %d\n", irq); -} - atomic_t irq_err_count; int arch_show_interrupts(struct seq_file *p, int prec) -- 2.11.0