From patchwork Mon Oct 12 15:52:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Ryabinin X-Patchwork-Id: 7377431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 263869F1D5 for ; Mon, 12 Oct 2015 15:55:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4BBB7208BD for ; Mon, 12 Oct 2015 15:55:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C31320837 for ; Mon, 12 Oct 2015 15:55:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZlfPk-00076S-08; Mon, 12 Oct 2015 15:53:28 +0000 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZlfPZ-0006zV-M3 for linux-arm-kernel@lists.infradead.org; Mon, 12 Oct 2015 15:53:18 +0000 Received: by lbbck17 with SMTP id ck17so27177684lbb.1 for ; Mon, 12 Oct 2015 08:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sQBC4Bc6GTRJGc5v+5oqCwcrmqOgMXBMtuvf05MooB8=; b=EulgiY70a1DtX7K/L6sZDVkOeCu78Os10Prt5MCDWe1D2ghtXWxZ0EuQMiL0r/22XC isSOUxLWEj/SQPx8YautkXgue0QRMngJuind4IghSCrVDqlxp4o2ohCDG+qoDEfC5qSE Erz80gXqmtj6126tXO3Hx6GqtOOz1djDL7HHeb/P+R7vY6dL7fr/Bn/lTn86a/O8aCVg 6HSf4iuKtL6A7qlmszIr9IVpeifNh/IxqRTRdKdQw3KEn+b9pSzM0fQRV+g9ewnbzA7r ++7McoNOj9xmSHYiMIBbD9GjqUA2/E1QIVSRq4puU4KPOo+SYyCJYG6i7cduExo57dGo uVXA== X-Received: by 10.112.63.135 with SMTP id g7mr12915411lbs.16.1444665175797; Mon, 12 Oct 2015 08:52:55 -0700 (PDT) Received: from localhost.sw.ru (swsoft-msk-nat.sw.ru. [195.214.232.10]) by smtp.gmail.com with ESMTPSA id oi5sm2157876lbb.13.2015.10.12.08.52.54 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 12 Oct 2015 08:52:54 -0700 (PDT) From: Andrey Ryabinin To: Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 1/4] arm64: move PGD_SIZE definition to pgalloc.h Date: Mon, 12 Oct 2015 18:52:57 +0300 Message-Id: <1444665180-301-2-git-send-email-ryabinin.a.a@gmail.com> X-Mailer: git-send-email 2.4.9 In-Reply-To: <1444665180-301-1-git-send-email-ryabinin.a.a@gmail.com> References: <1444665180-301-1-git-send-email-ryabinin.a.a@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151012_085317_937156_E07630DA X-CRM114-Status: GOOD ( 10.15 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yury , Alexey Klimov , Arnd Bergmann , linux-mm@kvack.org, Andrey Konovalov , Linus Walleij , Ard Biesheuvel , linux-kernel@vger.kernel.org, kasan-dev , David Keitel , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)