qemu-e2k/hw/arm
Philippe Mathieu-Daudé 0b796f3810 hw/arm/smmu: Avoid using inlined functions with external linkage again
Similarly to commit 9de9fa5cf2 ("hw/arm/smmu-common: Avoid using
inlined functions with external linkage"):

  None of our code base require / use inlined functions with external
  linkage. Some places use internal inlining in the hot path. These
  two functions are certainly not in any hot path and don't justify
  any inlining, so these are likely oversights rather than intentional.

Fix:

  C compiler for the host machine: clang (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")
  ...
  hw/arm/smmu-common.c:203:43: error: static function 'smmu_hash_remove_by_vmid' is
  used in an inline function with external linkage [-Werror,-Wstatic-in-inline]
      g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
                                            ^
  include/hw/arm/smmu-common.h:197:1: note: use 'static' to give inline function 'smmu_iotlb_inv_vmid' internal linkage
  void smmu_iotlb_inv_vmid(SMMUState *s, uint16_t vmid);
  ^
  static
  hw/arm/smmu-common.c:139:17: note: 'smmu_hash_remove_by_vmid' declared here
  static gboolean smmu_hash_remove_by_vmid(gpointer key, gpointer value,
                ^

Fixes: ccc3ee3871 ("hw/arm/smmuv3: Add CMDs related to stage-2")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20240313184954.42513-2-philmd@linaro.org>
2024-04-02 14:55:32 +02:00
..
allwinner-a10.c
allwinner-h3.c
allwinner-r40.c
armsse.c
armv7m.c
aspeed_ast10x0.c
aspeed_ast2400.c
aspeed_ast2600.c
aspeed_eeprom.c
aspeed_eeprom.h
aspeed_soc_common.c
aspeed.c
b-l475e-iot01a.c
bananapi_m2u.c
bcm2835_peripherals.c
bcm2836.c
bcm2838_peripherals.c
bcm2838.c
boot.c
collie.c
cubieboard.c
digic_boards.c
digic.c
exynos4_boards.c
exynos4210.c
fby35.c
fsl-imx6.c
fsl-imx6ul.c
fsl-imx7.c
fsl-imx25.c
fsl-imx31.c
gumstix.c
highbank.c
imx25_pdk.c
integratorcp.c
Kconfig
kzm.c
mainstone.c
mcimx6ul-evk.c
mcimx7d-sabre.c
meson.build
microbit.c
mps2-tz.c
mps2.c
mps3r.c
msf2-soc.c
msf2-som.c
musca.c
musicpal.c
netduino2.c
netduinoplus2.c
npcm7xx_boards.c
npcm7xx.c
nrf51_soc.c
nseries.c
olimex-stm32-h405.c
omap1.c
omap2.c
omap_sx1.c
orangepi.c
palm.c
pxa2xx_gpio.c
pxa2xx_pic.c
pxa2xx.c
raspi4b.c raspi4b: Reduce RAM to 1Gb on 32-bit hosts 2024-04-02 10:13:48 +01:00
raspi.c
realview.c
sabrelite.c
sbsa-ref.c
smmu-common.c hw/arm/smmu: Avoid using inlined functions with external linkage again 2024-04-02 14:55:32 +02:00
smmu-internal.h
smmuv3-internal.h
smmuv3.c
spitz.c
stellaris.c
stm32f100_soc.c
stm32f205_soc.c
stm32f405_soc.c
stm32l4x5_soc.c
stm32vldiscovery.c
strongarm.c
strongarm.h
tosa.c
trace-events
trace.h
versatilepb.c
vexpress.c
virt-acpi-build.c
virt.c
xen_arm.c
xilinx_zynq.c
xlnx-versal-virt.c
xlnx-versal.c
xlnx-zcu102.c
xlnx-zynqmp.c
z2.c