From patchwork Wed Aug 7 16:40:55 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: 13756504 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 5971FC3DA7F for ; Wed, 7 Aug 2024 16:44:08 +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=FfjY47EFCNuaqzJrjkcIOHWEC3eghIeQUka1TR7ddpk=; b=a9AQ3DI6VWYincHXMg8LxZbBjH ORS6vaBzqzxDUuWusthgHpAInQklqO66XTUN3QyoaDHNfBwPgT20gI7qD84w8xjNM5SkO4pmjyWsm 2xodx8g5rm6x+t4MEOdpp+XCyVCDemQOepSZb17sbGGFIi3Bx/pjJMcwgYfTFUsr53zETLL+Kuq12 gDqCOb+PuUj7M+A2CIBqFzTyeW8u6NKKY7CbZpOe1jUZyN1j9lYb2vj8RD63B/kQUS/fn2CQWhfMO L5fixIaUDYKQGaNjqGxxCxJaFZLTKEsT3fu03Q4+VBCGNbyOeZVhrZKwnEDZK0BMm2tt16rzqDPA4 IES4qiKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjlT-00000005ioM-1kpy; Wed, 07 Aug 2024 16:43:55 +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 1sbjiw-00000005iG0-3Kwq for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 16:41:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 10CA961016; Wed, 7 Aug 2024 16:41:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A18EC4AF0E; Wed, 7 Aug 2024 16:41:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723048877; bh=eRIJEEyf7QDaw23WZTKjVSks0g9kDIH4kencrfpKwEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GT/a2+YA3sPtdZPzCE5396AXadOgeCbCZsVmjbuzjl217jFDbSQWeMQqcntTj5+lf /y10eS5ZH9z+bPT9SMTDaStEkaEjnu06O2A7g46NGhKUT/qRpJlBxorMAbV0+XyneR +4LUJ4iOdUREo43b4gQoN5bf2HqxbQwST0Dk+vHu09kH2MD+/fHj4NSRDOxmrSsCXs ho3ro2dl3Vfe1WWTQ4GKRN6osIfXjtxRASoKedEtj2o5xLOFrddWzrsMGbPnmP3JnO GlobhOy8MVjJgvzJ0JlWHsWDEQZr2Nnw658LGgJLXi3lgvKGFhAy3SOkErBVFmDAMk UaZWB/AH0ia8A== 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 v2 03/12] irqchip/armada-370-xp: Add the __init attribute to mpic_msi_init() Date: Wed, 7 Aug 2024 18:40:55 +0200 Message-ID: <20240807164104.4140-4-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240807164104.4140-1-kabel@kernel.org> References: <20240807164104.4140-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_094118_920643_3F338160 X-CRM114-Status: GOOD ( 11.72 ) 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index fcfc5f86fbff..f5a693745785 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -314,7 +314,7 @@ 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;