]> xenbits.xensource.com Git - xen.git/commitdiff
tools/symbols: drop asm/types.h inclusion
authorJan Beulich <jbeulich@suse.com>
Mon, 6 Feb 2023 15:03:00 +0000 (16:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 6 Feb 2023 15:03:00 +0000 (16:03 +0100)
While this has been there forever, it's not clear to me what it was
(thought to be) needed for. In fact, all three instances of the header
already exclude their entire bodies when __ASSEMBLY__ was defined.
Hence, with no other assembly files including this header, we can at the
same time get rid of those conditionals.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
xen/arch/arm/include/asm/types.h
xen/arch/riscv/include/asm/types.h
xen/arch/x86/include/asm/types.h
xen/tools/symbols.c

index 576e971fe1f2c145f34f3adcb259a9491118322f..e218ed77bd5846ee1f84e0253f5918c4082eb8ca 100644 (file)
@@ -1,9 +1,6 @@
 #ifndef __ARM_TYPES_H__
 #define __ARM_TYPES_H__
 
-#ifndef __ASSEMBLY__
-
-
 typedef __signed__ char __s8;
 typedef unsigned char __u8;
 
@@ -54,8 +51,6 @@ typedef u64 register_t;
 #define PRIregister "016lx"
 #endif
 
-#endif /* __ASSEMBLY__ */
-
 #endif /* __ARM_TYPES_H__ */
 /*
  * Local variables:
index 64976f118d842ff81da0a5e4d04a33c1854ace64..0c0ce78c8f6e2405097e8322c192507abfe3f334 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __RISCV_TYPES_H__
 #define __RISCV_TYPES_H__
 
-#ifndef __ASSEMBLY__
-
 typedef __signed__ char __s8;
 typedef unsigned char __u8;
 
@@ -57,8 +55,6 @@ typedef u64 register_t;
 
 #endif
 
-#endif /* __ASSEMBLY__ */
-
 #endif /* __RISCV_TYPES_H__ */
 /*
  * Local variables:
index 0e9cfdece8dbefaa0798b0dac1d503a4e3dcb8ea..2d56aed667827bd325a1630c3e056244e849bbd2 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __X86_TYPES_H__
 #define __X86_TYPES_H__
 
-#ifndef __ASSEMBLY__
-
 typedef __signed__ char __s8;
 typedef unsigned char __u8;
 
@@ -32,6 +30,4 @@ typedef unsigned long paddr_t;
 #define INVALID_PADDR (~0UL)
 #define PRIpaddr "016lx"
 
-#endif /* __ASSEMBLY__ */
-
 #endif /* __X86_TYPES_H__ */
index 710e9785d348ca3f67ad4588f26b56afecefd3f8..67560605f2175db1ac46124daf7bfec33d88b8f2 100644 (file)
@@ -302,7 +302,6 @@ static void write_src(void)
                return;
        }
        printf("#include <xen/config.h>\n");
-       printf("#include <asm/types.h>\n");
        printf("#if BITS_PER_LONG == 64 && !defined(SYMBOLS_ORIGIN)\n");
        printf("#define PTR .quad\n");
        printf("#define ALGN .align 8\n");