From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 C7526298CC4; Tue, 21 Jul 2026 22:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784671483; cv=none; b=IFHfDJdUacH0z6bdwOSG4s3QLBIw7WqtWVSgHdE/S9MJKdggVgdBax2DczkE0oJIvBqanCKVEjDKKznQ2WftFLEVoPqrXB+LkM5qSX5y1dLy5NpevPAH4ivJDt+is/ZsL9VoxUl/UsF3q2Ac0aBAqbHOCpsFoNLiul2nDnSAYCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784671483; c=relaxed/simple; bh=+c9N5Ajxit3QpCs3lsXXBrlq/XPdtcgJew1uPfMgPUI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KmdqAvZHK4ybzr2ocC3YOIzdq9+pWFK15n9Zkt7Jc4HuexA4kmJadm15XJVvwV+WCEuVhhB2o5zWdDIZDlBB22obDY4KJX3OKWC99mc0lSaSYgYxhaP0ND23coCFsR4JVGT2+eePBsvBi25rtqTvFkjTUNyJ1ig1/R1DmzX8bug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=weMukI9q; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="weMukI9q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 392FC1F000E9; Tue, 21 Jul 2026 22:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784671482; bh=jqC0khsKO4PUgz5pUo1egHuib0uyNJqyK5PC781UMe8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=weMukI9qR5Wkig8lbnBRmKBVxpZFz5yvffTyN0ZSMDw/U6+XeAN3dIWQ+jgdQq6wC +LjjLBaOEydQMiYMgKRRuaSEM+iw8IemBmvdz/MyBAAWEC1yUDD2Howa83nwQxMXQK tlPHviC1vb9vgw5xMUtQOnKr2qv3A9THkURFre8w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Maciej W. Rozycki" , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.15 261/843] MIPS: DEC: Remove do_IRQ() call indirection Date: Tue, 21 Jul 2026 17:18:16 +0200 Message-ID: <20260721152411.898296462@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152405.946368001@linuxfoundation.org> References: <20260721152405.946368001@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Maciej W. Rozycki [ Upstream commit 35554eadc1b127bb5294504a4ac8f3a5dd9e299d ] As from commit 8f99a1626535 ("MIPS: Tracing: Add IRQENTRY_EXIT section for MIPS") do_IRQ() is not a macro anymore and can be invoked directly from assembly code, as a tail call. Remove the dec_irq_dispatch() stub then and the indirection previously introduced with commit 187933f23679 ("[MIPS] do_IRQ cleanup"), improving performance by reducing the number of control flow changes and the overall instruction count, while fixing a compiler's complaint about a missing prototype for said stub: arch/mips/dec/setup.c:780:25: warning: no previous prototype for 'dec_irq_dispatch' [-Wmissing-prototypes] 780 | asmlinkage unsigned int dec_irq_dispatch(unsigned int irq) | ^~~~~~~~~~~~~~~~ (which gets promoted to a compilation error with CONFIG_WERROR). Fixes: 8f99a1626535 ("MIPS: Tracing: Add IRQENTRY_EXIT section for MIPS") Signed-off-by: Maciej W. Rozycki Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/dec/int-handler.S | 2 +- arch/mips/dec/setup.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/mips/dec/int-handler.S b/arch/mips/dec/int-handler.S index 011d1d678840aa..a0b439c90488fc 100644 --- a/arch/mips/dec/int-handler.S +++ b/arch/mips/dec/int-handler.S @@ -277,7 +277,7 @@ srlv t3,t1,t2 handle_it: - j dec_irq_dispatch + j do_IRQ nop #if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT) diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index 99b9b29750db3c..ec0aa4ef2778a6 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c @@ -776,9 +776,3 @@ void __init arch_init_irq(void) pr_err("Failed to register halt interrupt\n"); } } - -asmlinkage unsigned int dec_irq_dispatch(unsigned int irq) -{ - do_IRQ(irq); - return 0; -} -- 2.53.0