linux-stable/arch/powerpc/sysdev
Arnd Bergmann 928b3ca4b1 powerpc/fsl-soc: hide unused const variable
[ Upstream commit 01acaf3aa7 ]

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: 305bcf2612 ("powerpc/fsl-soc: use CONFIG_EPAPR_PARAVIRT for hcalls")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240403080702.3509288-2-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-30 09:49:35 +02:00
..
ge powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
xics powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu 2023-11-27 22:01:15 +11:00
xive powerpc/xive: Fix endian conversion size 2023-10-19 17:12:47 +11:00
6xx-suspend.S
cpm2.c powerpc/cpm2: Remove cpm2_map() and cpm2_unmap() 2023-08-16 23:54:47 +10:00
cpm2_pic.c powerpc/cpm2: Remove cpm2_map() and cpm2_unmap() 2023-08-16 23:54:47 +10:00
cpm2_pic.h
cpm_common.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
cpm_gpio.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
dart.h
dart_iommu.c powerpc/iommu: Add missing of_node_put in iommu_init_early_dart 2022-05-22 15:58:31 +10:00
dcr-low.S powerpc: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-16 23:54:48 +10:00
dcr.c powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
ehv_pic.c powerpc/85xx: Mark some functions static and add missing includes to fix no previous prototype error 2023-08-23 15:55:21 +10:00
fsl_gtm.c
fsl_lbc.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
fsl_mpic_err.c
fsl_mpic_timer_wakeup.c powerpc/fsl: fix compiler warning in fsl_wakeup_sys_init() 2023-03-28 08:23:54 +02:00
fsl_msi.c powerpc/fsl-soc: hide unused const variable 2024-05-30 09:49:35 +02:00
fsl_msi.h
fsl_pci.c powerpc/fsl-pci: Use PCI_HEADER_TYPE_MASK instead of literal 2023-12-01 15:00:54 -06:00
fsl_pci.h powerpc/fsl_pci: Make fsl_add_bridge() static 2023-08-18 17:03:13 +10:00
fsl_pmc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
fsl_rcpm.c
fsl_rio.c powerpc/85xx: Mark some functions static and add missing includes to fix no previous prototype error 2023-08-23 15:55:21 +10:00
fsl_rio.h
fsl_rmu.c powerpc/85xx: Mark some functions static and add missing includes to fix no previous prototype error 2023-08-23 15:55:21 +10:00
fsl_soc.c TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
fsl_soc.h
grackle.c powerpc/32: Drop unused grackle_set_stg() 2023-11-27 22:01:15 +11:00
i8259.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
indirect_pci.c
ipic.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
ipic.h
Kconfig
Makefile powerpc/85xx: Remove FSL_85XX_CACHE_SRAM 2022-05-22 15:58:30 +10:00
mmio_nvram.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc5xxx_clocks.c powerpc/mpc5xxx: Add missing fwnode_handle_put() 2023-08-25 08:39:30 +10:00
mpic.c powerpc: Explicitly reverse bytes when checking for byte reversal 2023-10-19 17:12:47 +11:00
mpic.h
mpic_msgr.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpic_msi.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpic_timer.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpic_u3msi.c powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
msi_bitmap.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
of_rtc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
pmi.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
rtc_cmos_setup.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
tsi108_dev.c powerpc: Use of_address_to_resource() 2023-04-04 22:11:03 +10:00
tsi108_pci.c powerpc/sysdev/tsi108: fix resource printk format warnings 2023-03-30 23:36:34 +11:00
udbg_memcons.c powerpc: udbg_memcons: mark functions static 2024-02-06 21:17:44 +11:00