Message ID | 20220703141203.147893-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 6EDFBC43334 for <linux-mm@archiver.kernel.org>; Sun, 3 Jul 2022 14:12:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E4F3F6B0072; Sun, 3 Jul 2022 10:12:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DFF928E0003; Sun, 3 Jul 2022 10:12:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC6B98E0002; Sun, 3 Jul 2022 10:12:29 -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 BF9C26B0072 for <linux-mm@kvack.org>; Sun, 3 Jul 2022 10:12:29 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 80CE5604EC for <linux-mm@kvack.org>; Sun, 3 Jul 2022 14:12:29 +0000 (UTC) X-FDA: 79645978818.11.D91C1F4 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf17.hostedemail.com (Postfix) with ESMTP id 2111540051 for <linux-mm@kvack.org>; Sun, 3 Jul 2022 14:12:28 +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 96ED1B80A37; 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 <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>, 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 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 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656857549; a=rsa-sha256; cv=none; b=OdE9UcBzxV1bLwsREWAi22eR+0FT99zHIkN39HB/gaHLePapKRkRK7/0vozUsZ2/MdGbIT jgWvxRMycZYBHQtZngm09TV3o4gh6/7dA1+xaOVFNsn3guPEK8bI/kSncqHERjB3KssJoC TA2EKwbfHhisef1QStqdbcOWd3a2cmc= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="HG+BQW/O"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656857549; 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=qwMdBggTWYCmEzv+PkQgKhoOTljY8KNz8XLPgOcq4s8=; b=s67zOsHad/0nSZOSBFtWZFrJDQ06dojazWwS4zv/+JE/hMJgA50iBlpX/0YlystYnuBAwX NnY7TMFR0s6oqgkrSXvnrbsz9PewUKIyFljvnLPr+TurvNlPthYmGcjIfbH4bu9znp0ce+ mE2l4RS8swJy1F4aCrwNqMooCBl6pWk= X-Rspamd-Queue-Id: 2111540051 X-Rspam-User: Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="HG+BQW/O"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org X-Rspamd-Server: rspam02 X-Stat-Signature: 3xiqt7j4jk1eyo3zrcyj4tbengi1m996 X-HE-Tag: 1656857548-688954 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)