From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by kanga.kvack.org (Postfix) with ESMTP id DFA016B0255 for ; Thu, 17 Sep 2015 05:38:21 -0400 (EDT) Received: by lbcao8 with SMTP id ao8so6189994lbc.3 for ; Thu, 17 Sep 2015 02:38:21 -0700 (PDT) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com. [2a00:1450:4010:c03::230]) by mx.google.com with ESMTPS id od3si1520990lbb.76.2015.09.17.02.38.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 02:38:19 -0700 (PDT) Received: by lahg1 with SMTP id g1so7624241lah.1 for ; Thu, 17 Sep 2015 02:38:19 -0700 (PDT) From: Andrey Ryabinin Subject: [PATCH v6 2/6] arm64: move PGD_SIZE definition to pgalloc.h Date: Thu, 17 Sep 2015 12:38:08 +0300 Message-Id: <1442482692-6416-3-git-send-email-ryabinin.a.a@gmail.com> In-Reply-To: <1442482692-6416-1-git-send-email-ryabinin.a.a@gmail.com> References: <1442482692-6416-1-git-send-email-ryabinin.a.a@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org Cc: Andrey Ryabinin , Linus Walleij , Alexander Potapenko , Dmitry Vyukov , Arnd Bergmann , linux-kernel@vger.kernel.org, David Keitel , linux-mm@kvack.org, Alexey Klimov , Yury , Andrey Konovalov This will be used by KASAN latter. Signed-off-by: Andrey Ryabinin Acked-by: Catalin Marinas --- arch/arm64/include/asm/pgalloc.h | 1 + arch/arm64/mm/pgd.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/pgalloc.h b/arch/arm64/include/asm/pgalloc.h index 7642056..c150539 100644 --- a/arch/arm64/include/asm/pgalloc.h +++ b/arch/arm64/include/asm/pgalloc.h @@ -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 diff --git a/arch/arm64/mm/pgd.c b/arch/arm64/mm/pgd.c index 71ca104..cb3ba1b 100644 --- a/arch/arm64/mm/pgd.c +++ b/arch/arm64/mm/pgd.c @@ -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) -- 2.4.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org