Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1104805lqp; Fri, 22 Mar 2024 05:59:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBrXyiGj9e58KFUni2VVWDcvYtl88IMzUO6R/LxWJ+7jdPcIgQQQy6Fl78J2QXPxnhUEODvhr/buQDn1Wmo4VaV3lnNMod8jFjvEa70w== X-Google-Smtp-Source: AGHT+IH6u7vg+VvcNB0rSZep5ACxchv/ptvPn3eYkJTw07IBQhkji3FoZ/GeVuiQpxHENOIhOqWI X-Received: by 2002:a05:6a20:7fa4:b0:1a3:4fd2:a8c0 with SMTP id d36-20020a056a207fa400b001a34fd2a8c0mr2956208pzj.48.1711112381801; Fri, 22 Mar 2024 05:59:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711112381; cv=pass; d=google.com; s=arc-20160816; b=qH7qfgdgrMLaQgP2uJr6g3ONNwTvSOhBKJqQ+S4HnokVsikSR2nUir5L77stIPyCDl Nbgv94LZ6594339EYT95C4mLd7oV9cEdVIVu8L7Omhi2nNaZNrhEAZKloraG171614Wy /DAHOCxixUazwVoLy3lX/yEazL7NjsA6M5IGWHP54XdXsMWTUdT/MPP29CmULPmJliyJ kP5Xi/BPAklXfyBkSbFUH2h/Uzi+dlKfzTUUSyqHTEv3nzTli5Jem4Qm5fncjdkcXchP xK4I17IuiA9gaIE0RaVGJBKIwSyFj3grht0GBdVwhY7LgnsbcQxuz2mMhaOjmD5kQ1IM Y4xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=s5TwVmqA7cXUrNMImZWGCWCsawJ6YG4A5svs4xhgjUg=; fh=tjWdaqXKzfKKzqxOUxgk7GfcJkzV9vRJNUT5umMSziU=; b=unMQLzVDjLWzDZjbm31mu6cJImHhqGTCCBcHLWxSDOs7EeKd0NJXWRzcyWLQzIx8VC vcTFP0p0dUcp4D7CbrT8jgc5H6gmS02CBsY00g1xd8D8zwzEcP9nvteSQXjWFQtINmtW ZSWuY+jfTbkdqTzYsKLlneJvslg4gk18noZEL+tBiX72EV7EcuLmSq3c4wILZNRabAyQ XwHavmq/+O3B11str3pklU7KatDddsyLBt1lT6qzzsW3/x3qiKsrZE4t34KJtLONCrcN S9cH9ssa1wtSZPOodxBcoXLrsn1uW1JXA3u4iu7m2BiyH7eb530Xbl002cQERUVE4P6d 6yXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uBbWDbQm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111446-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q13-20020a631f4d000000b005dc3c49442esi1940901pgm.732.2024.03.22.05.59.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 05:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111446-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uBbWDbQm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111446-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EDFA0288421 for ; Fri, 22 Mar 2024 12:58:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C7E744C97; Fri, 22 Mar 2024 12:58:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uBbWDbQm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 42B674597F for ; Fri, 22 Mar 2024 12:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711112324; cv=none; b=iy7Y9OKgsk83Pw4niG778WgSBpIEnW29jfFsyZFlVe7MKBEckli9qQTVoGBC+nA8wlHRywQjbGWpiruS6ev+241BrMFH/5HjXAArzq86KL9u4AKZCT1IiJ1NapCT2YE7cx4ID4YNEaHkXHphXtqoUIQdyOIwu84NBMQo9PK79CE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711112324; c=relaxed/simple; bh=tPM3F2u9ASQYBV69NuQIdhVTqJUeD18FsKrclmmQJuQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IrHPezhXTxAZabyN2XWnKDVXafaR3jsrCJmuVguP2HVlV3U5fjnIWv/wsI2UBwrjc5Fj7H4v7z0zY+I8FlTioH/D8lTiTnWaiZTX2+yeXBQtLpjQjqJU1IIk6bhWEp/UgEiIbWDUruLPCwnR5nYFsd78I9wObVqKeGhOc+WdyL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uBbWDbQm; arc=none smtp.client-ip=10.30.226.201 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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