Skip to content

Commit

Permalink
arm64: move PGD_SIZE definition to pgalloc.h
Browse files Browse the repository at this point in the history
This will be used by KASAN latter.

Signed-off-by: Andrey Ryabinin <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
aryabinin authored and ctmarinas committed Oct 12, 2015
1 parent 305d454 commit fd2203d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions arch/arm64/include/asm/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions arch/arm64/mm/pgd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd2203d

Please sign in to comment.