Skip to contentSkip to conversation

xen/arm: Include xen/vmap.h in mm.c

PATCH In review Michal Orzel 3 participants 3 messages Apr 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Include xen/vmap.h in mm.c

As reported by ECLAIR scan, MISRA requires declaration to be visible (R8.4). This is not the case for ioremap().

Fixes 2cd02c27d327 ("arm/mpu: Implement stubs for ioremap_attr on MPU")

---
https://gitlab.com/xen-project/hardware/xen/-/jobs/9599092510
as part of the most recent pipeline on staging:
https://gitlab.com/xen-project/hardware/xen/-/pipelines/1748174980

---
 xen/arch/arm/mm.c | 1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/mm.c +1 -0
index 5a52f0c623e5..0613c1916936 100644
@@ -12,6 +12,7 @@
 #include <xen/grant_table.h>
 #include <xen/guest_access.h>
 #include <xen/mm.h>
+#include <xen/vmap.h>
 
 #include <xsm/xsm.h>
 
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Michal,

Quoted 7 lines · Michal Orzel

As reported by ECLAIR scan, MISRA requires declaration to be visible (R8.4). This is not the case for ioremap().

Fixes 2cd02c27d327 ("arm/mpu: Implement stubs for ioremap_attr on MPU")

Cheers
Bertrand

Quoted 23 lines

---
https://gitlab.com/xen-project/hardware/xen/-/jobs/9599092510
as part of the most recent pipeline on staging:
https://gitlab.com/xen-project/hardware/xen/-/pipelines/1748174980
---
xen/arch/arm/mm.c | 1 +

1 file changed, 1 insertion(+)
xen/arch/arm/mm.c +1 -0
index 5a52f0c623e5..0613c1916936 100644
@@ -12,6 +12,7 @@
 #include <xen/grant_table.h>
 #include <xen/guest_access.h>
 #include <xen/mm.h>
+#include <xen/vmap.h>
 
 #include <xsm/xsm.h>
 
Signature · 1 line
2.25.1