Skip to contentSkip to conversation

common: asm/desc.h is an x86-only header

PATCH In review Jan Beulich 3 participants 3 messages Aug 8, 2023 – Aug 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common: asm/desc.h is an x86-only header

From briefly going over 9062553a0dc1 it looks like the #include in what was ac_timer.c was added there for no reason. It's unneeded now in any event, and it is the sole reason for Arm to have that dummy header. Purge that, thus avoiding PPC to also gain one.

xen/arch/arm/include/asm/desc.h deleted +0 -12
@@ -1,12 +0,0 @@
-#ifndef __ARCH_DESC_H
-#define __ARCH_DESC_H
-
-#endif /* __ARCH_DESC_H */
-/*
- * Local variables:
- * mode: C
- * c-file-style: "BSD"
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- */
xen/common/timer.c +0 -1
@@ -22,7 +22,6 @@
 #include <xen/rcupdate.h>
 #include <xen/symbols.h>
 #include <asm/system.h>
-#include <asm/desc.h>
 #include <asm/atomic.h>
 
 /* We program the time hardware this far behind the closest deadline. */
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jan Beulich

From briefly going over 9062553a0dc1 it looks like the #include in what was ac_timer.c was added there for no reason. It's unneeded now in any event, and it is the sole reason for Arm to have that dummy header. Purge that, thus avoiding PPC to also gain one.

And RISC-V too.

Quoted 1 line

I'd noticed this too, and was wondering why it had escaped into common code.  Good riddance.

Acked-by on v1 1/1
#2 lore raw
In reply to Jan Beulich

Hi Jan,

Quoted 6 lines · Jan Beulich

From briefly going over 9062553a0dc1 it looks like the #include in what
was ac_timer.c was added there for no reason. It's unneeded now in any event, and it is the sole reason for Arm to have that dummy header. Purge that, thus avoiding PPC to also gain one.

Cheers,

Signature · 1 line
Julien Grall