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 1690A1D7E5C; Tue, 21 Jul 2026 20:29:45 +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=1784665786; cv=none; b=MPQL1Fwr2xjz6PsSA1SPubE+oVe20iuynd12F2B00to1Xkv6JnKCnX7nzElDD6BJdngqsyWirW9SmPs3ORWZUHCJI5JMyqGpvEJl4KTT4sYX6q1Ww630k2C8bhLmv3+l75etd0W06DSutBo9CPL0YV8mRpezl2x6WbqDWfo0ub0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784665786; c=relaxed/simple; bh=CKYrFVDtp0C7b7jqWQBRKgBXugMTNsJ8DwGBlm6li9U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lxWAt+1buHk3jAofxVn6TeCZD7NlPJfhBl75acontOJler4PYPZf+3dWdiyTmBsOj+4G5FyFNLcokskNU6rPH/KfB7GwXQc1OAM1Ayd/F+L8UzJ2WX8trSJi+a5fLyH7Fby2c22y0JK4yiSoYap6N3tGnybLFY/FvVd93H/pqJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Mey6Q0V3; 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="Mey6Q0V3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B94D1F000E9; Tue, 21 Jul 2026 20:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784665785; bh=V5QXxzJ7wWFtYsn+U+qBv4g1RESIbcXdoX+Bf+pcF3Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Mey6Q0V3oetlV77TnkiR5tDjalh/qC9IBqZj5qwXw/o6n7UcC3oFfTsfQ5FoKcel0 1m5IIfEzPcJRJshj4rn5HcK5PaswC8C0fjNqWY4U9ryUuZZcatD0mVb4N8Y2C4jtub wY0tQbl30YLU+FzE+/BIOmspIx/gwcnNRsu3SJ5Q= 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 6.6 0435/1266] MIPS: DEC: Remove do_IRQ() call indirection Date: Tue, 21 Jul 2026 17:14:32 +0200 Message-ID: <20260721152451.575107055@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152441.786066624@linuxfoundation.org> References: <20260721152441.786066624@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 6.6-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 6c3704f51d0de4..ca6cb6b7293b44 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