Skip to contentSkip to conversation

x86/apic: Include genapic.h in delivery.c

PATCH In review Andrew Cooper 2 participants 2 messages Nov 12, 2024 – Nov 13, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/apic: Include genapic.h in delivery.c

This resolves 4 Misra violations of Rule 8.4 caused by the function definitions not being able to see their declarations.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: [email protected] <[email protected]>

---
 xen/arch/x86/genapic/delivery.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/x86/genapic/delivery.c +2 -1
index 7bb7bd658650..15100439be05 100644
@@ -3,8 +3,9 @@
 
 #include <asm/apic.h>
 #include <asm/current.h>
-#include <asm/smp.h>
+#include <asm/genapic.h>
 #include <asm/hardirq.h>
+#include <asm/smp.h>
 
 /*
  * LOGICAL FLAT DELIVERY MODE (multicast via bitmask to <= 8 logical APIC IDs).

base-commit: 38febce5b35a7a4391906499b2046f01ec0129ca

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Andrew Cooper

This resolves 4 Misra violations of Rule 8.4 caused by the function definitions not being able to see their declarations.

Quoted 29 lines

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: [email protected] <[email protected]>

---
 xen/arch/x86/genapic/delivery.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/x86/genapic/delivery.c +2 -1
index 7bb7bd658650..15100439be05 100644
@@ -3,8 +3,9 @@
 
 #include <asm/apic.h>
 #include <asm/current.h>
-#include <asm/smp.h>
+#include <asm/genapic.h>
 #include <asm/hardirq.h>
+#include <asm/smp.h>
 
 /*
  * LOGICAL FLAT DELIVERY MODE (multicast via bitmask to <= 8 logical APIC IDs).

base-commit: 38febce5b35a7a4391906499b2046f01ec0129ca

Signature · 1 line
2.39.5