Skip to contentSkip to conversation

hw/arm: remove `inline` from `smmu_iotlb_inv_vmid_s1`

PATCH In review Roman Kiryanov 3 participants 3 messages Jul 17, 2025 – Jul 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm: remove `inline` from `smmu_iotlb_inv_vmid_s1`

this function is declared in smmu-common.h without inline. It is also used outside of this file which causes linking errors because the non-inline version is not generated.

---
 hw/arm/smmu-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/smmu-common.c +1 -1
index f39b99e526..0dcaf2f589 100644
@@ -319,7 +319,7 @@ void smmu_iotlb_inv_vmid(SMMUState *s, int vmid)
     g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
 }
 
-inline void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
+void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
 {
     trace_smmu_iotlb_inv_vmid_s1(vmid);
     g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid_s1, &vmid);
Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Roman Kiryanov

this function is declared in smmu-common.h without inline. It is also used outside of this file which causes linking errors because the non-inline version is not generated.

---
  hw/arm/smmu-common.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/smmu-common.c +0 -0
index f39b99e526..0dcaf2f589 100644

hw/arm/smmu-common.c void smmu_iotlb_inv_vmid(SMMUState *s, int vmid) · line 325

Quoted 8 lines
hw/arm/smmu-common.c +1 -1
@@ -319,7 +319,7 @@ void smmu_iotlb_inv_vmid(SMMUState *s, int vmid)
      g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
  }
 
-inline void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
+void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
  {
      trace_smmu_iotlb_inv_vmid_s1(vmid);
      g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid_s1, &vmid);

r~

#2 lore raw
In reply to Roman Kiryanov
Quoted 16 lines · Roman Kiryanov

this function is declared in smmu-common.h without inline. It is also used outside of this file which causes linking errors because the non-inline version is not generated.

---
  hw/arm/smmu-common.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/smmu-common.c +0 -0
index f39b99e526..0dcaf2f589 100644

hw/arm/smmu-common.c void smmu_iotlb_inv_vmid(SMMUState *s, int vmid) · line 325

Quoted 8 lines
hw/arm/smmu-common.c +1 -1
@@ -319,7 +319,7 @@ void smmu_iotlb_inv_vmid(SMMUState *s, int vmid)
      g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
  }
 
-inline void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
+void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
  {
      trace_smmu_iotlb_inv_vmid_s1(vmid);
      g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid_s1, &vmid);

Already posted (but missed):
https://lore.kernel.org/qemu-devel/[email protected]/