arm64: move PGD_SIZE definition to pgalloc.h
authorAndrey Ryabinin <ryabinin.a.a@gmail.com>
Mon, 12 Oct 2015 15:52:57 +0000 (18:52 +0300)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 12 Oct 2015 16:46:30 +0000 (17:46 +0100)
This will be used by KASAN latter.

Signed-off-by: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgalloc.h
arch/arm64/mm/pgd.c

index 76420568d66a463d7ba74fdf8a74ba916dd1dbd8..c15053902942e0a3a34ba4882545c5b6d163c23c 100644 (file)
@@ -27,6 +27,7 @@
 #define check_pgt_cache()              do { } while (0)
 
 #define PGALLOC_GFP    (GFP_KERNEL | __GFP_NOTRACK | __GFP_REPEAT | __GFP_ZERO)
+#define PGD_SIZE       (PTRS_PER_PGD * sizeof(pgd_t))
 
 #if CONFIG_PGTABLE_LEVELS > 2
 
index 71ca104f97bde3a7b9f11e2aa4e443357e2e29b9..cb3ba1b812e74dcd1acbc167756d60da331d105f 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "mm.h"
 
-#define PGD_SIZE       (PTRS_PER_PGD * sizeof(pgd_t))
-
 static struct kmem_cache *pgd_cache;
 
 pgd_t *pgd_alloc(struct mm_struct *mm)