From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mxz.fh-kl.de ([143.93.17.66]:52469 "EHLO mxz.fh-kl.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752860Ab3HOMkw (ORCPT ); Thu, 15 Aug 2013 08:40:52 -0400 Message-ID: <520CCC50.50202@fh-kl.de> (sfid-20130815_144053_476668_E730D226) Date: Thu, 15 Aug 2013 14:40:48 +0200 From: Patrick Ziegler MIME-Version: 1.0 To: "Luis R. Rodriguez" CC: Subject: [PATCH v3 08/10] backports: define phys_addr_t for ARM on kernel version < 2.6.25 References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-15" Sender: backports-owner@vger.kernel.org List-ID: phys_addr_t is not defined on ARM systems if kernel version < 2.6.25. Signed-off-by: Patrick Ziegler --- 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 504a615..0aadc80 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) -- 1.8.1.2 -- Dipl.-Inf. (FH) Patrick Ziegler University Of Applied Sciences Kaiserslautern Amerikastrasse 1 D-66482 Zweibruecken Germany Phone: +49 631 3724 5526 Mail: patrick.ziegler@fh-kl.de PGP KeyID 0xB4796B8C http://www.fh-kl.de http://www.fh-kl.de/fachbereiche/imst/iuk-knowhow.html