From mboxrd@z Thu Jan 1 00:00:00 1970 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 9EAAF1AED58; Thu, 6 Jun 2024 14:15:48 +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=1717683348; cv=none; b=G+47EI25DuwinxT8k9++bfn9Qul8W3AkMSyZYmd5ZQDCT1h8aH3PyzDNmUyiOQ0INgbciWjQl0CMzoAf3w0B+hy/KnXUhhZRpG7ekrIyFLeXcswtIyh2H6/xDOP23JcixeRvmpi13L5iks1OyGhlFRqO+0n/OTw0jTMUIS3pwuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683348; c=relaxed/simple; bh=l6P+aJet+9sBzVicPL/EJ3I2TW0umeNRkeVP2A8cZis=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rlzxrPkVluwiXbZEPU6oa0xdS2xkZqZXfurkoEVVpoKXrTZ6tAJoKrdel+Kq+7wWhhZwsQT596BMTU4lQIbXoj+GGvrLvZG6fZ4KZbBDXIUFYrL1rlNHYY+i4T20r7cdsJ0GFrOliNpaSd+E8wpkH+C9B9l6oHbFFV1DyD+kYe0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hkWX8Igd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hkWX8Igd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D04FC2BD10; Thu, 6 Jun 2024 14:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717683348; bh=l6P+aJet+9sBzVicPL/EJ3I2TW0umeNRkeVP2A8cZis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hkWX8IgdErPTuoISRiFapIqMv7V/p1IJskOmQht7YKMZCKnTUBDtnbQkIFgjkiBtK PNDe9gW4T8+D4C295A6A41tgTTvgl8W1fRvDM6/qZgWw3arDyi6UtdFxZ1RU4CoBPb 4UYFNcdkKLCKXultJpqy0VvUMc0FMIO+Zf5wNWAs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Arnd Bergmann , Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 6.6 289/744] powerpc/fsl-soc: hide unused const variable Date: Thu, 6 Jun 2024 15:59:21 +0200 Message-ID: <20240606131741.676243114@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606131732.440653204@linuxfoundation.org> References: <20240606131732.440653204@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann [ Upstream commit 01acaf3aa75e1641442cc23d8fe0a7bb4226efb1 ] vmpic_msi_feature is only used conditionally, which triggers a rare -Werror=unused-const-variable= warning with gcc: arch/powerpc/sysdev/fsl_msi.c:567:37: error: 'vmpic_msi_feature' defined but not used [-Werror=unused-const-variable=] 567 | static const struct fsl_msi_feature vmpic_msi_feature = Hide this one in the same #ifdef as the reference so we can turn on the warning by default. Fixes: 305bcf26128e ("powerpc/fsl-soc: use CONFIG_EPAPR_PARAVIRT for hcalls") Signed-off-by: Arnd Bergmann Reviewed-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://msgid.link/20240403080702.3509288-2-arnd@kernel.org Signed-off-by: Sasha Levin --- arch/powerpc/sysdev/fsl_msi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index 57978a44d55b6..ce9895633c4e0 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c @@ -568,10 +568,12 @@ static const struct fsl_msi_feature ipic_msi_feature = { .msiir_offset = 0x38, }; +#ifdef CONFIG_EPAPR_PARAVIRT static const struct fsl_msi_feature vmpic_msi_feature = { .fsl_pic_ip = FSL_PIC_IP_VMPIC, .msiir_offset = 0, }; +#endif static const struct of_device_id fsl_of_msi_ids[] = { { -- 2.43.0