From mboxrd@z Thu Jan 1 00:00:00 1970 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 3E0EEC47DD9 for ; Fri, 22 Mar 2024 12:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=ijtf9iXFa+fDmWiaAdHn7DChH4KfSFZqZfwGPDU7kQE=; b=fU5gqSayoYDEyK ItEt9STqGVM/Bt8P0F1Ht7ANLI7/m8Wr10lQ+xfBFFq4Tz8ArEClCdDzg4VMHbl4njXfBvP+qFtha zIGv0hmu668396/P5rrRl1NEXrtpuj7EBRChi83LyelhLjG4gxMoqhlEU4UlQ2Et3gDTdlKj+sqsY 2uIyrFwaOA+yMNzDtPmAVvTT5R6eqvu06zAStZY1Qic2XexOXOXzqRk6xISlMYLwYVGz083NBcf4I 7nQK7H+pkn0v30BHsqCUQDUTkRYYM6tdG99G6525BYTB3SA8lFgp1pyVBatTnKNZ+2KBN8qFJ14sW bUgPgBFc/vYwvYyBrL0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rneTy-00000007DRq-1XLu; Fri, 22 Mar 2024 12:58:50 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rneTu-00000007DPt-42pq for linux-arm-kernel@lists.infradead.org; Fri, 22 Mar 2024 12:58:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id D7235CE1801; Fri, 22 Mar 2024 12:58:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0947DC433C7; Fri, 22 Mar 2024 12:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711112324; bh=tPM3F2u9ASQYBV69NuQIdhVTqJUeD18FsKrclmmQJuQ=; h=From:To:Cc:Subject:Date:From; b=uBbWDbQm3ON8eVDvCuGB3egEYJD33nyQn2+geSiL9NhReMtoq8G2GGLWzG+DIf0Hn 1abdlYkXhLGyxVnYZ+8H6XsD5qd6wVxsfx3gWZaNGxUkZMBMBll24Y4Ecb9tTWhmbt Bug0vetqcic4hBwO25H7K+g5EbOEg5jiQWznxCeGtsuE4EZXEjRG6fwu4Cc5TPqZ5d XKgnQ6VVOUZFINo5duOjCOMqdaUnBdTjCj3HXT0Q8kFBMbMFrNUm5ThhTEhG24+WhD UV22MNWcXGif2XH1zZuHF/QmXep3Z0wrALMc9uqhDdMEgxtsNq/vi25+RWsULdb7GA mjEWL1Z6ZstaQ== From: Arnd Bergmann To: Thomas Gleixner Cc: Arnd Bergmann , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Marc Zyngier , Nathan Rossi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] [RESEND] irqchip: armada: suppress unused-function warning Date: Fri, 22 Mar 2024 13:58:25 +0100 Message-Id: <20240322125838.901649-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240322_055847_213052_560F721B X-CRM114-Status: GOOD ( 12.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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann armada_370_xp_msi_reenable_percpu is only defined when CONFIG_PCI_MSI is enabled, and only called when SMP is enabled. Without CONFIG_SMP, there are no callers, so we get a build time warning instead: drivers/irqchip/irq-armada-370-xp.c:319:13: error: 'armada_370_xp_msi_reenable_percpu' defined but not used [-Werror=unused-function] 319 | static void armada_370_xp_msi_reenable_percpu(void) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark the function as __maybe_unused to avoid adding more complexity to the #ifdefs. Fixes: 8ca61cde32c1 ("irqchip/armada-370-xp: Enable MSI affinity configuration") Link: https://lore.kernel.org/lkml/20221215170202.2441960-1-arnd@kernel.org/ Signed-off-by: Arnd Bergmann --- I noticed this never got applied, and the warning still remains. --- 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 a55528469278..4b021a67bdfe 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -316,7 +316,7 @@ static int armada_370_xp_msi_init(struct device_node *node, return 0; } #else -static void armada_370_xp_msi_reenable_percpu(void) {} +static __maybe_unused void armada_370_xp_msi_reenable_percpu(void) {} static inline int armada_370_xp_msi_init(struct device_node *node, phys_addr_t main_int_phys_base) -- 2.39.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel