From: John Stultz Date: Fri, 31 Jan 2014 19:22:18 +0000 (-0800) Subject: Fix aarch64 build issue with ION X-Git-Tag: firefly_0821_release~3680^2~4^2~32^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e23832c042e05fcc25f9d26e7e3f7959cce7c54;p=firefly-linux-kernel-4.4.55.git Fix aarch64 build issue with ION In trying to build ION for aarch64, I came across the following build error: In file included from /home/jstultz/projects/linux/linaro.android/arch/arm64/include/asm/page.h:39:0, from drivers/staging/android/ion/ion_system_heap.c:17: /home/jstultz/projects/linux/linaro.android/arch/arm64/include/asm/pgtable-3level-types.h:19:1: error: unknown type name u64 typedef u64 pteval_t; ^ /home/jstultz/projects/linux/linaro.android/arch/arm64/include/asm/pgtable-3level-types.h:20:1: error: unknown type name u64 typedef u64 pmdval_t; ^ ... The problem is asm/page.h doesn't include anything that defines u64, so add an asm/types.h include to the pgtable-3level-types.h to match upstream and avoid the issue. Change-Id: I23f6d2e909cb4de1f9b4f21eb20f9200367faddd Signed-off-by: John Stultz --- 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 @@ #ifndef __ASM_PGTABLE_3LEVEL_TYPES_H #define __ASM_PGTABLE_3LEVEL_TYPES_H +#include + typedef u64 pteval_t; typedef u64 pmdval_t; typedef u64 pgdval_t;