diff options
author | Chen Gang <gang.chen@asianux.com> | 2013-08-21 05:50:17 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-08-22 06:44:41 -0400 |
commit | 360b35a874f130305715b1b854b67dc40826fc91 (patch) | |
tree | 3b0f35bbfd460c8e358a35cdeb36cc5e1c8b3cb4 /arch/arm64 | |
parent | 4cfb36136480c029a29dbf63a623506e6ed7282b (diff) |
ARM64: include: asm: include "asm/types.h" in "pgtable-2level-types.h" and "pgtable-3level-types.h"
Need include "asm/types.h", just like arm has done, or can not pass
compiling, the related error:
In file included from arch/arm64/include/asm/page.h:37:0,
from drivers/staging/lustre/include/linux/lnet/linux/lib-lnet.h:42,
from drivers/staging/lustre/include/linux/lnet/lib-lnet.h:44,
from drivers/staging/lustre/lnet/lnet/api-ni.c:38:
arch/arm64/include/asm/pgtable-2level-types.h:19:1: error: unknown type name ‘u64
arch/arm64/include/asm/pgtable-2level-types.h:20:1: error: unknown type name ‘u64’
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/pgtable-2level-types.h | 2 | ||||
-rw-r--r-- | arch/arm64/include/asm/pgtable-3level-types.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/pgtable-2level-types.h b/arch/arm64/include/asm/pgtable-2level-types.h index 3c3ca7d361e4..5f101e63dfc1 100644 --- a/arch/arm64/include/asm/pgtable-2level-types.h +++ b/arch/arm64/include/asm/pgtable-2level-types.h | |||
@@ -16,6 +16,8 @@ | |||
16 | #ifndef __ASM_PGTABLE_2LEVEL_TYPES_H | 16 | #ifndef __ASM_PGTABLE_2LEVEL_TYPES_H |
17 | #define __ASM_PGTABLE_2LEVEL_TYPES_H | 17 | #define __ASM_PGTABLE_2LEVEL_TYPES_H |
18 | 18 | ||
19 | #include <asm/types.h> | ||
20 | |||
19 | typedef u64 pteval_t; | 21 | typedef u64 pteval_t; |
20 | typedef u64 pgdval_t; | 22 | typedef u64 pgdval_t; |
21 | typedef pgdval_t pmdval_t; | 23 | typedef pgdval_t pmdval_t; |
diff --git a/arch/arm64/include/asm/pgtable-3level-types.h b/arch/arm64/include/asm/pgtable-3level-types.h index 4489615f14a9..4e94424938a4 100644 --- a/arch/arm64/include/asm/pgtable-3level-types.h +++ b/arch/arm64/include/asm/pgtable-3level-types.h | |||
@@ -16,6 +16,8 @@ | |||
16 | #ifndef __ASM_PGTABLE_3LEVEL_TYPES_H | 16 | #ifndef __ASM_PGTABLE_3LEVEL_TYPES_H |
17 | #define __ASM_PGTABLE_3LEVEL_TYPES_H | 17 | #define __ASM_PGTABLE_3LEVEL_TYPES_H |
18 | 18 | ||
19 | #include <asm/types.h> | ||
20 | |||
19 | typedef u64 pteval_t; | 21 | typedef u64 pteval_t; |
20 | typedef u64 pmdval_t; | 22 | typedef u64 pmdval_t; |
21 | typedef u64 pgdval_t; | 23 | typedef u64 pgdval_t; |