From: Jinbum Park Date: Wed, 22 Nov 2017 12:43:59 +0000 (+0900) Subject: arm64: pgd: Mark pgd_cache as __ro_after_init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a349b30250634da20950eb91e2551dcd81f1805d;p=linux.git arm64: pgd: Mark pgd_cache as __ro_after_init pgd_cache is setup once while init stage and never changed after that, so it is good candidate for __ro_after_init Signed-off-by: Jinbum Park Signed-off-by: Will Deacon --- diff --git a/arch/arm64/mm/pgd.c b/arch/arm64/mm/pgd.c index 371c5f03a1708..051e71ec3335e 100644 --- a/arch/arm64/mm/pgd.c +++ b/arch/arm64/mm/pgd.c @@ -26,7 +26,7 @@ #include #include -static struct kmem_cache *pgd_cache; +static struct kmem_cache *pgd_cache __ro_after_init; pgd_t *pgd_alloc(struct mm_struct *mm) {