Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp745422imk; Sun, 3 Jul 2022 07:53:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vrnUMaQjopDPw9R/mvGT1NkO/TBsL9CX9OjQzkdbWSTYXPKdTNfxhVIq/eCLqSfC3THjDT X-Received: by 2002:aa7:d555:0:b0:43a:1be7:9e17 with SMTP id u21-20020aa7d555000000b0043a1be79e17mr5737113edr.183.1656860026450; Sun, 03 Jul 2022 07:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656860026; cv=none; d=google.com; s=arc-20160816; b=QeO1/yvBfxdDKh4uHfeQMu4L1iT0UxUICwNCO5tFAi7OC2g6QJylw1KEy34HxVEbUZ JrvdG/xs9QHR3miTpPULof038hslokSxdZnv4Rtk0xJgvy7qnwtZheu7H+uenOwm9YUI 1mKTKNVhf1Y+loA1zAOCgN291/0wWiUH/EkiJhWhSC7MP1Vr0BBomggUh+HsG33nFFqF IBC7VPdZ1SG0lfEnord9eBTgxkKKbtPwJkJey6isDhPQWrOiRg3ibtAHOJRS1djvoetj rAB9fV0ARoMuu2I3BeHYtLZIzd+nc2pZZpqjZ6+CQ2q+3w5K6u1YdwOCUBYfS1Q/fUFh pK0w== 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=qwMdBggTWYCmEzv+PkQgKhoOTljY8KNz8XLPgOcq4s8=; b=eEbGQNUHTH8nrjNq4wnLlESuLTUrz5rzuLAMrcamfULrZpp7uFRG21hq7GFuXvUEnT SIgZfGlN5iPc0giCERP9wIM6vReUxtSJ/ayeAiZjFYgTAhARbuiBjvnSERciKZowrxT5 pLC9hdxpqYUy/Okbfr+DZKQQ23bvfUcZUhpmCXwLxwbkPW7JWv4kRBTu01VAhsP9yOfh N4r4u6xFhQxDyt2aVa7WWNpsMldm3BTcOOYcl03Tbl7dCl/pZJLFYGuxRltB0OhRrWef zTGpkz/TXsQNB8rAQU05VJcxVsgm2SvKcVlZD+tCRXTJMQYTkLHoOMUa5kWpMk2B8V+b QUdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HG+BQW/O"; 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 ej17-20020a056402369100b004379969e340si20377018edb.48.2022.07.03.07.53.21; Sun, 03 Jul 2022 07:53:46 -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="HG+BQW/O"; 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 S232552AbiGCOMd (ORCPT + 99 others); Sun, 3 Jul 2022 10:12:33 -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 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 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