From 1469cfd014ecf9a1fc10c5471305dbe37101b6c8 Mon Sep 17 00:00:00 2001 From: Patrick Ziegler Date: Thu, 15 Aug 2013 14:40:48 +0200 Subject: [PATCH] backports: define phys_addr_t for ARM on kernel version < 2.6.25 phys_addr_t is not defined on ARM systems if kernel version < 2.6.25. Signed-off-by: Patrick Ziegler Signed-off-by: Luis R. Rodriguez --- backport/backport-include/linux/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backport/backport-include/linux/types.h b/backport/backport-include/linux/types.h index 504a615c6dab..0aadc80f829a 100644 --- a/backport/backport-include/linux/types.h +++ b/backport/backport-include/linux/types.h @@ -4,7 +4,7 @@ #include #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) -#if defined(CONFIG_X86) || defined(CONFIG_X86_64) +#if defined(CONFIG_X86) || defined(CONFIG_X86_64) || defined(CONFIG_ARM) #if defined(CONFIG_64BIT) || defined(CONFIG_X86_PAE) || defined(CONFIG_PHYS_64BIT) typedef u64 phys_addr_t; @@ -12,7 +12,7 @@ typedef u64 phys_addr_t; typedef u32 phys_addr_t; #endif -#endif /* x86 */ +#endif /* x86 || ARM */ #elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) /* < 2.6.25 */ #if defined(CONFIG_X86) || defined(CONFIG_X86_64) || defined(CONFIG_PPC) -- 2.30.2