Message ID | 20240913084433.1016256-2-anshuman.khandual@arm.com (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 BAF99FA3730 for <linux-mm@archiver.kernel.org>; Fri, 13 Sep 2024 08:44:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3BC296B00B0; Fri, 13 Sep 2024 04:44:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 36CDD6B00C2; Fri, 13 Sep 2024 04:44:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2176D6B00B0; Fri, 13 Sep 2024 04:44:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 01A226B00B0 for <linux-mm@kvack.org>; Fri, 13 Sep 2024 04:44:51 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 6DCC5142000 for <linux-mm@kvack.org>; Fri, 13 Sep 2024 08:44:51 +0000 (UTC) X-FDA: 82559079582.15.1DF8E63 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf28.hostedemail.com (Postfix) with ESMTP id D1AC8C0003 for <linux-mm@kvack.org>; Fri, 13 Sep 2024 08:44:49 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf28.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726217061; a=rsa-sha256; cv=none; b=vPpBdsbbGo/6uSBkO2QTCZuViVwtE4Jasm1+Kxv/Z7rSZ2hfZOxVEqFdGjt+TJW68scEYR f8X5M/Y1XGZE+WL9ZFefNpLwJwxG8mWO+nBL2FXfWMG9EG967ZW5u6qej/3I4uRD9kD0Ap /tYu29VfMvPBuzmXRjn6bh5QZ0JqmV8= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf28.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726217061; 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; bh=6lpxn0RtcL6Fkqv+YkOVwAEEKQgcrbZLeJiP74sUbcE=; b=thcjPqRM0ptnO9vn/1JA1WKVy3Q13Vy1932q8wqHAkfgRFBMi3id0TnJxQ11UFh/k6VtIr ykS9EoHOPlJ0pmFHmu2p8GWBdiEE7gnUZ13lXVX6Y7WCdgDR8qILdWgjRlX5yuAWtdVhKi HbvWritRQ8hmlf/5RCvtAtOnVGJSW4M= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 98C101477; Fri, 13 Sep 2024 01:45:18 -0700 (PDT) Received: from a077893.blr.arm.com (a077893.blr.arm.com [10.162.16.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D42DA3F73B; Fri, 13 Sep 2024 01:44:44 -0700 (PDT) From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-mm@kvack.org Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Andrew Morton <akpm@linux-foundation.org>, David Hildenbrand <david@redhat.com>, Ryan Roberts <ryan.roberts@arm.com>, "Mike Rapoport (IBM)" <rppt@kernel.org>, Arnd Bergmann <arnd@arndb.de>, x86@kernel.org, linux-m68k@lists.linux-m68k.org, linux-fsdevel@vger.kernel.org, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org>, Guo Ren <guoren@kernel.org> Subject: [PATCH 1/7] m68k/mm: Change pmd_val() Date: Fri, 13 Sep 2024 14:14:27 +0530 Message-Id: <20240913084433.1016256-2-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240913084433.1016256-1-anshuman.khandual@arm.com> References: <20240913084433.1016256-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Queue-Id: D1AC8C0003 X-Rspamd-Server: rspam01 X-Stat-Signature: fc77dqmmx4g4mi3rbyfkkod86yhdhyn4 X-HE-Tag: 1726217089-420298 X-HE-Meta: U2FsdGVkX18NJK13y9fe3EDiVm+qTdOSUK/KFtcl2AvG/yFts1IEnooc+DAh4IzSKRkrH/4WOHNFEvjCfAmvStdnvu9P9ZGHUr4EDmuy4von8fbcD7IDWXT0UryAGyRo+nB2j9sradDkR7YUoicJfySlksI3EfH9eryUqHWjIDPziF4C0kYfQyhNj/5gmHwUBmJ7NC0BoeaWB/KEBPx6W8vo4oUHEDo5N5nd9jc6eJmeLVkGesrNoO4YtIjElEW3wysvS256Hmb2GZtNN9yq23vo2bhSn6NsN3Enzg1n/RtTuNaDn/JtXc4QbCGsloc97TT/HP3ypr6rJb6XBe+hjnOsuF7ae3YBie8nbAOEuFpZbBdc7QxER7wLZYHmfODJBgZN80nLYotHSPvEeui+p2a0ZLU0Y1G4ohu/if8qfFNzNYhz0w4EGALfmKI8KM1XYRUMwrkzcwmGv3q9+/66q9Nlj6NcohAgDpemKD9vH/Sl4ioQNs25sSsTNc5TiwQxCJxzFfJEvIn8TYCzVOWSFFfmbW69T3vXhj5k5wy9/iPhtxdtGGz9DVLUYn0OqGtVGkUb9uYgcAmGrp2mqdA43WVz+mEe4uBURzINq1p69l+NCxu45hMQh5aF+d/740cBN5XstvOoFg7vPpD8h9O+UCVmtG4yz0tJ3uhiljmkTcmGCyA96cGcqqD3jkaVbn3V5RIXjTp6hA56aZhQe5EXoGl8oprRkicS8Vzsmh5DBWCKSdxbnJyEOKZw6Pq5TcO+uQJDAyCNw+G1ecfyqkFrwSsnPXRWfqfW7VABI7czN01dIrB9Dm8ELok3COPawbnFUMVll4XHKY9kmn+wFdYxXB4Afq2ey7EOJRRmhCQki5Vg/lgI86oS5lRt47FzjTMMTAop8baKKKRJ0L1qM3I1CS458nbKSGsB6MkTmsLzzZmZSyFJkIdSXjao3iOosE3jg3jnE+2FWdc5ojvyoMR QkO9lcr+ 3298vpZ2pS3d252n2shbvt2u3vkCMfQU3YtDnhPnsVlEpW9RDfwsdR065LPfchRQP9vw2eyT0F4Byf2zuJudKamx3jOPL2z+Iymtykj7/WDOU1KhkFHoic7zotrdBFC6huXvURZHJum+hEc3hmIInRcgxPDxIRXj7TmYE90M18varmqPeb7pq1vNopuB0Qj2E+mZDczEqRjteG5FpPAvyTzkY+9EMK/i/RlZXJiBuAIZIDrO+UzxxwVIlHII7DkVCglLVVUyYlESAAesWxp6cPtZZbgS4vnrGv8TUkuLTxyFoYdRMEVvpPousQw== 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: Use pxdp_get() for accessing page table entries
|
expand
|
diff --git a/arch/m68k/include/asm/page.h b/arch/m68k/include/asm/page.h index 8cfb84b49975..be3f2c2a656c 100644 --- a/arch/m68k/include/asm/page.h +++ b/arch/m68k/include/asm/page.h @@ -19,7 +19,7 @@ */ #if !defined(CONFIG_MMU) || CONFIG_PGTABLE_LEVELS == 3 typedef struct { unsigned long pmd; } pmd_t; -#define pmd_val(x) ((&x)->pmd) +#define pmd_val(x) ((x).pmd) #define __pmd(x) ((pmd_t) { (x) } ) #endif
This changes platform's pmd_val() to access the pmd_t element directly like other architectures rather than current pointer address based dereferencing that prevents transition into pmdp_get(). Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Guo Ren <guoren@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: linux-m68k@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> --- arch/m68k/include/asm/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)