Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp746489imk; Sun, 3 Jul 2022 07:55:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1udB1Gqj1X9I1tE9naOkSJGAy3+hEjxbsMq9DCw2ZgoA2xyfTI+lj07ind8TXoltr6HrJ+i X-Received: by 2002:a63:8c50:0:b0:40c:fa26:9738 with SMTP id q16-20020a638c50000000b0040cfa269738mr20830914pgn.541.1656860139300; Sun, 03 Jul 2022 07:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656860139; cv=none; d=google.com; s=arc-20160816; b=k7QYCkVjeJRz3ADdTyBmWVA7dxQ3NuycfTcMoDcaq7RmUT4I1/RGhslcpqtkNHkMN7 wDviYJ56gtP3QTUeAhCzz1WMZ5mADgPL5vI4eytUlSozrsqczaS5JwF92j8lrSZtu4kO jTSuL/2WKzCRrbJKdkCnFQuI+Zskvs/QFV+eISgXh4KD3G6IzorwmBt8p0XoA8zUIAh/ qhJUzlYVZ61mI0p0NTss+xtb7Cld+CSPIzz94gdC7YjsIGaErrd3mvh2Qw2mY99pCD3N KSgPPTQumlIzu7eJWNBXnps//mm+BGFyfukEB6oHDHDMi+uNGc8WfxXPsXhkEdlbtMZH 6u8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wl2doL6lJ7wJQGCd2w85VLZ3c+CmsDRAS7CnhlVwcNE=; b=Pp2D7R5VJTbw8bDW94Vac/k7jwisHNbshC/Z05gr+nuGL1mgfzBJnErp38VSSuxxxv Y2h22RwqvGHixsdH6TcXPGidVNrhs+R0p4TW9yxS8092RZfsOTmEuGqpCBRlpMuAGQ/Y aktQPGWkLNx7qK83dBAVl9+g4FogfdiJjLf81m9tOmVkUCHXQMEPuApgdKbHp3my1mAq 0PjgY5529qm5BPj0/qlH+xjshVYNrRdmvh+2IjatxQCfaQEHMCPxjQJL4I9vFLMvIsnC ih+OH/jA1hkErBD1lsudklR62BFfT7IAeP6/EE03OtFjGZjgTZISxaxm0/Tpb+3BuoJ5 eGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sKbuVa8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c73-20020a63354c000000b00409fc0f5d8esi38119290pga.245.2022.07.03.07.55.27; Sun, 03 Jul 2022 07:55:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sKbuVa8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233032AbiGCOOm (ORCPT + 99 others); Sun, 3 Jul 2022 10:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbiGCOOK (ORCPT ); Sun, 3 Jul 2022 10:14:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E6766241; Sun, 3 Jul 2022 07:13:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 01C69B80934; Sun, 3 Jul 2022 14:13:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D5AAC341CD; Sun, 3 Jul 2022 14:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656857622; bh=KLRO24VwSLVIulcSBrEsq68hsqfeXNzy27r4Yp11+QA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sKbuVa8nJocjDSLME19wodPND/eY3ci7mQaF2VF0RkS16prNJC/Rx+KipYzlLUbam 2wQ+uslUOousId9kaRS1+QWGhkDYQywa++8rU0JKfY2gJkAckNQusF7YPzgSQ+mEk2 QchHMdRcdcmh99r/g4QLh0PJMLUztvRFIVTVjBx7GxTSCcljhdGSAneGc/d4iCfH3x V90hUAAZO/8WAjzKftMl55V30VyAI73t+KTfUFTLOcxted0sWUDR5CE5N9qNy1M1IO zw3p8ZDEJ+vrUCctdipz2oetV89iAHqZWjZAjuJ3nUEpHTQLFqra8Nd4JSPI9MqlGS jfN6ddFVC5OTg== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Dinh Nguyen , Guo Ren , Helge Deller , Huacai Chen , "James E.J. Bottomley" , Matthew Wilcox , Max Filippov , Mike Rapoport , Mike Rapoport , Thomas Bogendoerfer , WANG Xuerui , linux-arch@vger.kernel.org, linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, linux-xtensa@linux-xtensa.org, loongarch@lists.linux.dev Subject: [PATCH 14/14] xtensa: drop definition of PGD_ORDER Date: Sun, 3 Jul 2022 17:12:03 +0300 Message-Id: <20220703141203.147893-15-rppt@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220703141203.147893-1-rppt@kernel.org> References: <20220703141203.147893-1-rppt@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Rapoport This is the order of the page table allocation, not the order of a PGD. Since its always hardwired to 0, simply drop it. Signed-off-by: Mike Rapoport --- arch/xtensa/include/asm/pgalloc.h | 2 +- arch/xtensa/include/asm/pgtable.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/xtensa/include/asm/pgalloc.h b/arch/xtensa/include/asm/pgalloc.h index eeb2de3a89e5..7fc0f9126dd3 100644 --- a/arch/xtensa/include/asm/pgalloc.h +++ b/arch/xtensa/include/asm/pgalloc.h @@ -29,7 +29,7 @@ static inline pgd_t* pgd_alloc(struct mm_struct *mm) { - return (pgd_t*) __get_free_pages(GFP_KERNEL | __GFP_ZERO, PGD_ORDER); + return (pgd_t*) __get_free_page(GFP_KERNEL | __GFP_ZERO); } static inline void ptes_clear(pte_t *ptep) diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h index 0a91376131c5..4bd77d2b6715 100644 --- a/arch/xtensa/include/asm/pgtable.h +++ b/arch/xtensa/include/asm/pgtable.h @@ -57,7 +57,6 @@ #define PTRS_PER_PTE 1024 #define PTRS_PER_PTE_SHIFT 10 #define PTRS_PER_PGD 1024 -#define PGD_ORDER 0 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE) #define FIRST_USER_PGD_NR (FIRST_USER_ADDRESS >> PGDIR_SHIFT) -- 2.34.1