From patchwork Mon Jul 15 10:51:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 13733313 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 42323C3DA5D for ; Mon, 15 Jul 2024 10:53:42 +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=aqwKruE3QPIQBgib6r5zrVnk1fGq0iEvQBBJk6FAfto=; b=3RCNIauzmmfWyRbLxt29wnuP+2 W7KA7WkDnpzIAxHtl1Q1M4fMGt3M7N181Xgh1mDZQ1qvqkoF655Z9X4WO8p1gTqOISLqnnzAkRs1v CEBls6nLEKIewcLgqjvIoEyt52J5p0ZhfnfQPKRWdAwcEQo6RdZBonhogx4ofz1RhyDbn7zdHpkB/ dT5sQ2rf72mgwysz/E8Z2DRN4EF5L4NtXNx1RjpDWkqohGDcfS+bghpJxyruIkmhmvDvWz8qC2c19 jzbuaWK4hUm5UDmGO7ahEijHe+jJCCcyAjMg1swVbVAtyfmAUn9o4dxzfb/hFeSliS/FYN7dzeQKh niE73VVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTJKm-00000006lnM-0siA; Mon, 15 Jul 2024 10:53:32 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTJJX-00000006lMS-25VZ for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 10:52:17 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 9EB3060EBB; Mon, 15 Jul 2024 10:52:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ED7BC4AF0A; Mon, 15 Jul 2024 10:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721040734; bh=K4NFYOC8oStffXCHwSvjto4Ewdglh2t5DDMs3CCvT4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sfRfa/E4OqI9x4ALZQiiGUnYb+VL7SReaMidHDxqndRxdm8SKHEzpEeVCJEc+Fc3U hMQE1jAjlRk02rhFf5GWkM3SsD6tFzhv9QwUAFZPc5oesdU8GoF9FsMSuGNNasvQB8 /uvR5QwZ9+FD7zNn7ylVAgoZDcma+SBFSg589NC41ZOjWZpZTNniAgm7m90gD1EZ98 hQKqsgMYUz89ftogbgmd5agJH26nNxJo9KKg4HXQOFB7NaEkM4FbVt1o7VoCYG/RoZ uga9GDGPMlH0WAJBmhaykryTunJBXTUJag7/fBYsFcrBsgDLDqC0ac5YGwDZgpsx7I vUc1XR0xx0GeA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, arm@kernel.org, Andy Shevchenko , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH 04/13] irqchip/armada-370-xp: Add the __init attribute to mpic_msi_init() Date: Mon, 15 Jul 2024 12:51:47 +0200 Message-ID: <20240715105156.18388-5-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240715105156.18388-1-kabel@kernel.org> References: <20240715105156.18388-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_035215_621600_17F5018E X-CRM114-Status: GOOD ( 11.65 ) 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 Add the __init attribute to the mpic_msi_init() function. It is only called from the device initializer, and so can be dropped after boot is complete. Signed-off-by: Marek BehĂșn --- drivers/irqchip/irq-armada-370-xp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 1739bf768696..2185f79007f4 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -318,8 +318,8 @@ static void mpic_msi_reenable_percpu(void) writel(1, per_cpu_int_base + MPIC_INT_CLEAR_MASK); } -static int mpic_msi_init(struct device_node *node, - phys_addr_t main_int_phys_base) +static int __init mpic_msi_init(struct device_node *node, + phys_addr_t main_int_phys_base) { msi_doorbell_addr = main_int_phys_base + MPIC_SW_TRIG_INT;