From nobody Tue Apr 14 09:35:37 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64A63C4332F for ; Thu, 15 Dec 2022 17:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbiLORC4 (ORCPT ); Thu, 15 Dec 2022 12:02:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbiLORCN (ORCPT ); Thu, 15 Dec 2022 12:02:13 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4667622280 for ; Thu, 15 Dec 2022 09:02:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 24F64CE1BC0 for ; Thu, 15 Dec 2022 17:02:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B7EDC433D2; Thu, 15 Dec 2022 17:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671123728; bh=aZPP5Ds69HdaOxy+6a8OrUz2MqCG1aXCDs4UKolW/As=; h=From:To:Cc:Subject:Date:From; b=l0tpiBK+b9s4IrxHju9S2phe8M9Eex7yQTuPXrR+Vv0qVD1fKN3TZCZS4/Zkeof9S 1EuDmyi66XvSafhDdW5J0EVGCpH8l7uhZOkLZ0oP+ne8YT1H860ndqgvNVPk8FAmCB c+mSLLVzxgpjnVuPY16B3q7IfYZkTh6eEEh6fYyw5VjQpdgbutJ+E60WGDWE1KJ/M7 Dhqjb2Xf9Y1p0bbRhKhFnH7NVGzUJBpz7z7lWyfbiaKiW+XgBpcaWbXgaovUcix59C xKT/cnOZ/QNchOpmvKXlql2qSMf8ifx6umv78Uvjzhdcae2FKjrwlw3Fow5EgVWprP MZl/XyyS+ZlzQ== From: Arnd Bergmann To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , Marc Zyngier , Nathan Rossi Cc: Arnd Bergmann , =?UTF-8?q?Pali=20Roh=C3=A1r?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] irqchip: armada: suppress unused-function warning Date: Thu, 15 Dec 2022 18:01:57 +0100 Message-Id: <20221215170202.2441960-1-arnd@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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_reena= ble_percpu' defined but not used [-Werror=3Dunused-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 configurat= ion") Signed-off-by: Arnd Bergmann --- 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-arma= da-370-xp.c index ee18eb3e72b7..178ff63f8e93 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 *n= ode, return 0; } #else -static void armada_370_xp_msi_reenable_percpu(void) {} +static __maybe_unused void armada_370_xp_msi_reenable_percpu(void) {} =20 static inline int armada_370_xp_msi_init(struct device_node *node, phys_addr_t main_int_phys_base) --=20 2.35.1