Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1116908lqp; Fri, 22 Mar 2024 06:14:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGBDE2HyG+quDA9++Ousn57boRDB86glu+nRO+gcTEEjctXmnKj8EcVs49LArkDVdiIPp8jWtKIX22ODYF0kRIEbTZK933g3wF3cwOVQ== X-Google-Smtp-Source: AGHT+IF62Jfp6YQuP6C9zfA24zpS3UT76fzOSHTZ29V63aBANEHr9gC8rgJTSprwc8c/pI5uXcFq X-Received: by 2002:a17:902:d2d0:b0:1dd:758f:2d39 with SMTP id n16-20020a170902d2d000b001dd758f2d39mr2548952plc.33.1711113290467; Fri, 22 Mar 2024 06:14:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711113290; cv=pass; d=google.com; s=arc-20160816; b=yU3iEYrS+V3ciVYzXLuQozqvwXYe2wS9T1noGo7BBiRIe5GCdYpDlAMjlAkUTi+RfC oZBYtjnrKNoZDz9y5jzFscXPDIe4GdLxJW8zpSBaNCthZF0gY8cwAK/GO+xbr2UbdQp6 NpyiXg8DGZZsHibZdU2Ykxet0sKMn0h69OaTj2B6Q0Y5HFm9lsCFEMwi+dufJ6ccJZ7/ p3JJ4+fKSGtpnlDFFJm+HGA5nCRZ4pFc3pVfK/M0CHa9ArjwL0h34wZ27onDyz48jWbv /V0PcP+owXYmFisQUbNsNAIOAXu8StFddDM3TgAsZCYINYXQintMNSnYQbwvKgpSm1VJ X0kA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vIwrXgz6mGqYH+RLNNIetaWtlUBzNHwGkAChikoCXt4=; fh=NommruujKhFO76S6ZO6iIrtvkObxBsaOQ+rP6532z2k=; b=pgQ+pSYJD/Jd2rltDqlcFbzKIHSw/zlvBWqM9flCA2VOpgUrZmjVZbFM624emS8Bqi XXgWa3gg2+qpY/Q0p8ClqsHVOPRUu1vQCtEcAIESpypQZcel/jaGveVwWcRJc8WAbpUm WLvUEVu6pVbVnDDTIFgVVxFEmZtkRh6KgVbKP+naFhn9rAWhtD/nsvgoG6YV/BGGRQjU EGz7cBhLR/AH9p3RIqvJ2vWceX9br4wt1toW7fDVyxpxUDMMOhsALQPUg86qA4ExOb0f 8zB1HFvx0EvAAenpHz6180rj5aMVKlsyUIvdPvkZnC7uvRFwrW6eKBB1ORSEUGr5Jal0 friw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LYvbscrW; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-111456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d3-20020a170902b70300b001dfff0b835esi1821659pls.10.2024.03.22.06.14.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:14:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111456-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=@lunn.ch header.s=20171124 header.b=LYvbscrW; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-111456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 E56DF286383 for ; Fri, 22 Mar 2024 13:14:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 382444596D; Fri, 22 Mar 2024 13:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="LYvbscrW" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 E27593FE3F for ; Fri, 22 Mar 2024 13:14:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113283; cv=none; b=UtBIQkiPjDoECrQRUJ6qni8lOjBIlg4W7MxZVCNb9d9EE5xO6CUM3Kh65+pgbsvIbGvDSQ/S8SucgL78uJNQB11uPc6ItANrVwaT9RZHyJo05QWj3mZgEJg40mL4p2HBijh3WkxBLHmgceJt9XcsLFaNdtdhB6ys30HJnlqbBBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113283; c=relaxed/simple; bh=qZNEGHs1Kwq2gn8k8DpiXnE1vNLz5XvMr7NXzgQ+ACw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OMIuIR+VK+Be90yBprKSaho0Sil8Uqkkv5Ew15ZbWNyVxJ62p+j30p0HL9Ac6mW4NgkOkBspmAHn9Lq+WFFBkobdm2jCCFGJpjoHxypLyLwpLV5OSYutz7yyHtXPp6/yKr902sa4zD66UtwvPgab5ULSUzM5X+ksS1XsBBuV/8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=LYvbscrW; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=vIwrXgz6mGqYH+RLNNIetaWtlUBzNHwGkAChikoCXt4=; b=LYvbscrWOzxXELMGyTRAUKsso+ 0PK0gHi6At8wOpXed5xwM//GqJVMALwzJjP3o3EnQjh3g7jywOKJIA7XrqRnTjS8a7y9szH73OZX0 ClZU2dAjjeL0s2cRcAph0vSkNYeVDBu/e1te5+jmR9X/7Tf5z3XNwB8/w+/5xRVlASPo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rnej2-00Axe0-LV; Fri, 22 Mar 2024 14:14:24 +0100 Date: Fri, 22 Mar 2024 14:14:24 +0100 From: Andrew Lunn To: Arnd Bergmann Cc: Thomas Gleixner , Arnd Bergmann , Gregory Clement , Sebastian Hesselbarth , Marc Zyngier , Nathan Rossi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [RESEND] irqchip: armada: suppress unused-function warning Message-ID: <1656dbc4-a695-4150-b24c-aeb3d6ecd77e@lunn.ch> References: <20240322125838.901649-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322125838.901649-1-arnd@kernel.org> On Fri, Mar 22, 2024 at 01:58:25PM +0100, Arnd Bergmann wrote: > 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 Reviewed-by: Andrew Lunn Andrew