Message ID | 20220705154708.181258-2-rppt@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7A61C43334 for <linux-mm@archiver.kernel.org>; Tue, 5 Jul 2022 15:47:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 31A546B0073; Tue, 5 Jul 2022 11:47:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2CA486B0074; Tue, 5 Jul 2022 11:47:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 192356B0075; Tue, 5 Jul 2022 11:47:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 0C69D6B0073 for <linux-mm@kvack.org>; Tue, 5 Jul 2022 11:47:35 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D9E15347D0 for <linux-mm@kvack.org>; Tue, 5 Jul 2022 15:47:34 +0000 (UTC) X-FDA: 79653476028.08.4CFBD1F Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf28.hostedemail.com (Postfix) with ESMTP id 20976C0054 for <linux-mm@kvack.org>; Tue, 5 Jul 2022 15:47:33 +0000 (UTC) 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 2BB80B81801; Tue, 5 Jul 2022 15:47:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E7A7C341CE; Tue, 5 Jul 2022 15:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657036050; bh=W1o4tQ4Mz3yoPsyKuae5TVdq4NrS0aa2i1+psL/+Jzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DEfK8Os2RNMFDVBTWjxNgDTEPS8wthdO66zbpawEt8SntE3Gem+uOfoOVr1jP2d7G f/+L5+3qkfuwfOtVOkOK2iql5WDDuGalOI9a6yP7sallTvGc+gEKVW1lSd1d0y/Ge3 5WWv4FT+kjQhWlHc2E9QAh+W0dPydj21sRt9ExoLFSn9bKzKrBvdaqbM24DFa6y4jw mxAPtkl0UzXEmzdGHBq1otPtO9TjqGJusv/EBXZiS+gRTB8pqpwgJ+ChLKJ3SbP2Cl d5WIiwoBNelFfQKQvGe1DwdURYY1/7tMsrWUgPXmyqwlel9eyAb1Uz5bRvO6UyRw+k dGBgMuJFIJMqQ== From: Mike Rapoport <rppt@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: Arnd Bergmann <arnd@arndb.de>, Dinh Nguyen <dinguyen@kernel.org>, Guo Ren <guoren@kernel.org>, Helge Deller <deller@gmx.de>, Huacai Chen <chenhuacai@kernel.org>, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, Matthew Wilcox <willy@infradead.org>, Max Filippov <jcmvbkbc@gmail.com>, Mike Rapoport <rppt@kernel.org>, Mike Rapoport <rppt@linux.ibm.com>, "Russell King (Oracle)" <linux@armlinux.org.uk>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, WANG Xuerui <kernel@xen0n.name>, 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 v2 01/15] csky: drop definition of PTE_ORDER Date: Tue, 5 Jul 2022 18:46:54 +0300 Message-Id: <20220705154708.181258-2-rppt@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220705154708.181258-1-rppt@kernel.org> References: <20220705154708.181258-1-rppt@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657036054; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=3/8dL8mzBou57cIsINIVlMF0//LK081JVm3b7yNUa7M=; b=cCTbL8G9VVDD1tr3Ku1p6UywjPhQpkhg5IMOz8Ph1BbaOQSTmnhiT2GobeWn6xR/iJFnlj myAglrnRbNS4//UoNTGDQzqdWJhMqYQ44aWU7kgfdHRSHvfi2rKaxkR+n5TUKRY+jdzeii 9RA45j2pMxa2ad3j89FVgWQ/XbGHgv4= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=DEfK8Os2; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657036054; a=rsa-sha256; cv=none; b=VtTYbTbsEW5acb0BLwv1eWsufPQtwCKbOphiTpx8YDP4L9yoZdZdSQYoeXEl1LLkuuUNKZ Vl3ZzCaX6uphErFgbYFGrkcICy/15odwmRzZ4+GTqB5OJqNWsyz0yz1TP/A51VqTiiuXGG 8pJ7dLN68xvWEP2smNThD88XY8jxvZs= X-Rspam-User: X-Rspamd-Queue-Id: 20976C0054 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=DEfK8Os2; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org X-Stat-Signature: qrhziihud6r77pj9dsggu1onmkpz58wi X-Rspamd-Server: rspam08 X-HE-Tag: 1657036053-683951 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
arch: make PxD_ORDER generically available
|
expand
|
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)