diff --git a/arch/arm/include/asm/int.h b/arch/arm/include/asm/int.h index 3af4fcb8a..642804e9b 100644 --- a/arch/arm/include/asm/int.h +++ b/arch/arm/include/asm/int.h @@ -1,15 +1,6 @@ -#ifndef __CR_INT_H__ -#define __CR_INT_H__ +#ifndef __CR_ASM_INT_H__ +#define __CR_ASM_INT_H__ -#include +#include "asm-generic/int.h" -typedef uint64_t u64; -typedef int64_t s64; -typedef unsigned int u32; -typedef signed int s32; -typedef unsigned short u16; -typedef signed short s16; -typedef unsigned char u8; -typedef signed char s8; - -#endif /* __CR_INT_H__ */ +#endif /* __CR_ASM_INT_H__ */ diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h index 0b57ce84a..e9aa636dc 100644 --- a/arch/arm/include/asm/types.h +++ b/arch/arm/include/asm/types.h @@ -1,7 +1,6 @@ #ifndef __CR_ASM_TYPES_H__ #define __CR_ASM_TYPES_H__ -#include #include #include #include "protobuf/core.pb-c.h" diff --git a/arch/x86/include/asm/int.h b/arch/x86/include/asm/int.h index 3af4fcb8a..642804e9b 100644 --- a/arch/x86/include/asm/int.h +++ b/arch/x86/include/asm/int.h @@ -1,15 +1,6 @@ -#ifndef __CR_INT_H__ -#define __CR_INT_H__ +#ifndef __CR_ASM_INT_H__ +#define __CR_ASM_INT_H__ -#include +#include "asm-generic/int.h" -typedef uint64_t u64; -typedef int64_t s64; -typedef unsigned int u32; -typedef signed int s32; -typedef unsigned short u16; -typedef signed short s16; -typedef unsigned char u8; -typedef signed char s8; - -#endif /* __CR_INT_H__ */ +#endif /* __CR_ASM_INT_H__ */ diff --git a/include/asm-generic/int.h b/include/asm-generic/int.h new file mode 100644 index 000000000..ac3088d5a --- /dev/null +++ b/include/asm-generic/int.h @@ -0,0 +1,15 @@ +#ifndef __CR_INT_H__ +#define __CR_INT_H__ + +#include + +typedef uint64_t u64; +typedef int64_t s64; +typedef uint32_t u32; +typedef int32_t s32; +typedef uint16_t u16; +typedef int16_t s16; +typedef uint8_t u8; +typedef int8_t s8; + +#endif /* __CR_INT_H__ */