From patchwork Thu Sep 17 09:38:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Ryabinin X-Patchwork-Id: 7204311 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 C78819F380 for ; Thu, 17 Sep 2015 09:40:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E13CF2081A for ; Thu, 17 Sep 2015 09:40:27 +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 246D920818 for ; Thu, 17 Sep 2015 09:40:27 +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 1ZcVeV-0003V0-9C; Thu, 17 Sep 2015 09:38:51 +0000 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcVeK-000377-UG for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2015 09:38:42 +0000 Received: by lbpo4 with SMTP id o4so6230998lbp.2 for ; Thu, 17 Sep 2015 02:38:19 -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=9HjwGmR6JVKZcR77HiHfG5cbipJQqREqGgI7nwuLvHg=; b=yFeBUB1dpCFad3/RtLwMDkF4fM5id33grsWso2FfaEfFiMV2fEeOYMIqq2M7IlpFV0 +WbWH4Yi915g0mrx+Q/IYtKlimFJNMdmeC0Juq1w6xlhqjrnAWVouPxxAh39xh/3cMdH I4L0WG73+VJVg7Q64GUOeXyKRGB1ehcsMmadBHEh+XANsYA3HSDU1cotcmIUz/RITJhq as2SpjokyFuBZHVoKIF0YjexvpdR0tKs21CYjcQZ7ejOZ/V9yExJFxFz+00beGsXo8Gg cJ8VevdU6wjzsTHog+anWlbUkG14pJ3KbFGg527u7cmEOfgzkUedq9x6ks1s3qWLpCjx poJQ== X-Received: by 10.112.52.138 with SMTP id t10mr31675573lbo.99.1442482698995; Thu, 17 Sep 2015 02:38:18 -0700 (PDT) Received: from localhost.sw.ru (swsoft-msk-nat.sw.ru. [195.214.232.10]) by smtp.gmail.com with ESMTPSA id b10sm410402laf.16.2015.09.17.02.38.17 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 17 Sep 2015 02:38:18 -0700 (PDT) From: Andrey Ryabinin To: Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org 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> X-Mailer: git-send-email 2.4.6 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_023841_316770_B684864F X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. 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 , linux-kernel@vger.kernel.org, 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)