From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F508C433EF for ; Sun, 3 Jul 2022 14:12:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232473AbiGCOMb (ORCPT ); Sun, 3 Jul 2022 10:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232199AbiGCOM3 (ORCPT ); Sun, 3 Jul 2022 10:12:29 -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 D8B575FD2; Sun, 3 Jul 2022 07:12:28 -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 8A415B80A28; Sun, 3 Jul 2022 14:12:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF959C341CD; Sun, 3 Jul 2022 14:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656857546; bh=nHPd+duCyzqaVTxsLgqswXgkzJ4Zv/d4SWm2/NDOpRQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HG+BQW/ODzbEa3KRUZNd8D5OPUMhM6c8zGV9FylNhOMr/K2/mCwqgK1hifTMhwBMg qGDkecDQ5mWkcbG/wIQzHDnXc6Mf0gcseXyZCKzftOOaOjD9xL8ChyN3RiXq0N7tkH f60+wnsEDz45V4N5or1JbPf5P7yo5YxuMVdLXWetDPGRIqAhRJAdCIec8NY4irfkCn mUdcFkUMwvoEkC07aO9VWYaTAhyi32knyc4qehQ6175hmmpoX7x22FKE9blSZ6hjRa RP+CUTPC/qLCoaEmMMffExFSenwNOsYXWy2a+xIox+k4hizrFKUfc2TMubo7CZvz5G L5ev6+YGfH2Xg== 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 01/14] csky: drop definition of PTE_ORDER Date: Sun, 3 Jul 2022 17:11:50 +0300 Message-Id: <20220703141203.147893-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org From: Mike Rapoport This is the order of the page table allocation, not the order of a PTE. Since its always hardwired to 0, simply drop it. Signed-off-by: Mike Rapoport --- arch/csky/include/asm/pgtable.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h index bbe245117777..f8bb1e12334b 100644 --- a/arch/csky/include/asm/pgtable.h +++ b/arch/csky/include/asm/pgtable.h @@ -19,11 +19,10 @@ * C-SKY is two-level paging structure: */ #define PGD_ORDER 0 -#define PTE_ORDER 0 #define PTRS_PER_PGD ((PAGE_SIZE << PGD_ORDER) / sizeof(pgd_t)) #define PTRS_PER_PMD 1 -#define PTRS_PER_PTE ((PAGE_SIZE << PTE_ORDER) / sizeof(pte_t)) +#define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t)) #define pte_ERROR(e) \ pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, (e).pte_low) -- 2.34.1