From patchwork Tue Sep 17 07:31:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 13805941 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EB6BC35FEC for ; Tue, 17 Sep 2024 07:31:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 331056B0089; Tue, 17 Sep 2024 03:31:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E1A16B008A; Tue, 17 Sep 2024 03:31:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1A9476B0092; Tue, 17 Sep 2024 03:31:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 000466B0089 for ; Tue, 17 Sep 2024 03:31:36 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A65AD401CA for ; Tue, 17 Sep 2024 07:31:36 +0000 (UTC) X-FDA: 82573410192.03.25143AE Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf19.hostedemail.com (Postfix) with ESMTP id 16CC91A0004 for ; Tue, 17 Sep 2024 07:31:34 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf19.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=1726558286; a=rsa-sha256; cv=none; b=qoat9HEFpkFRpDk1UGjdR+4lzOn64My8Gpo+cwiH+BIgRpxnWEB6oYqZotvz0q+hiwGXuC BSKMDjnsEAecYos7RI+ZXD6h45vPBuCpGU4yOtrHNUXbSNrs7SQZxCNqNBnDYl/6dsfE5h 8MxpE/K4Tou8UtOg2obR0HRTefyPjBk= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf19.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=1726558286; 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=oGJVUhfkopmE/7WhBt34c1PW2Fyr/i7X1vFHGreme3xfb7w5lzN2GueS/BSWnwkT8iA+V9 LYScJrq/uXrfB9a5lmGCPmg3HPCAsAbcf4bZ2aAdpSzZ449OjMX4QUIcVoyXlESNE85Vtu 0BaekUih/u1VnmrfWss+uT4sG25RANU= 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 85F251063; Tue, 17 Sep 2024 00:32:03 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.61.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E0D793F64C; Tue, 17 Sep 2024 00:31:28 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Andrew Morton , David Hildenbrand , Ryan Roberts , "Mike Rapoport (IBM)" , Arnd Bergmann , 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 , Guo Ren Subject: [PATCH V2 1/7] m68k/mm: Change pmd_val() Date: Tue, 17 Sep 2024 13:01:11 +0530 Message-Id: <20240917073117.1531207-2-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240917073117.1531207-1-anshuman.khandual@arm.com> References: <20240917073117.1531207-1-anshuman.khandual@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: 9eqptwwnpg8iuykf9nfr7cbxad8n4dtp X-Rspamd-Queue-Id: 16CC91A0004 X-Rspamd-Server: rspam02 X-HE-Tag: 1726558294-680365 X-HE-Meta: U2FsdGVkX19jgaDgNQ5gmaq7lpbMM2AWinYYdLY8ibjG1Y6P45LQHb6gtjqf0AclJlR65mC4wRRV1wGIQqY7CXz1icFy1GW0lM6VZwerX4aLBatutrknMCkml0s5JihQyFSjFVE9iUL0irw3hEv+hCchYVoFdHDxWGzv/M4tgPQGHr3bJaxVLi9/8HYTVsiYFxgPc2C5Vs2v3FLLIw0wCanbr1wX1Uc4BAe9NrqoahxB0GGoCZZRK8SeSPbUd4lHtAIQpPD2dQGnKbUXL4YFqSdQAsZ5d8LgQnpSVVuFxuZKtN24+vJ9nzynkReTvjB7pxGowXjcs7q+/ciXyEf0PvalKgstVGMNt6x7jeclJiXcVsGTEbTIsDY9wo91js0UInrNGSxmh7aH78YjbtAZHKH/2K2Ow6b/T+X2qjjSOPGEIaFfUzk2rcVyVCNbcraTXHSYWHpnb1awNTA8Y4QLJWhk74zrHmGL8U+xRN+2lwV1aAVQxnZI9USG44N9sGdJD79R+k7D17kVWIz/bM5yFEFfgtlyRVVezsa12lIYbPfFozym82ypjVvEBO4QwMzI7AwmdWS5t+iwFXZqRWnTWKml2RATgAgw7BQRZWuVqRT6ZjUVciMbX0qI4ku1Seays78nSf08w6GYtYdXhyn8jUpQf4xqZ6woPs9Gk29EGRn4EYo5ld2YjzZ4qwR0dQxi7dp35RTNv99GM2ffjF+/GTpv4yh08Brgl8KzPv4GTU9qr2EpuRtUwQug9Le0bdhxAIpfSQShG2uafbcxSOvsLvs61f5IULk6dVHoQInASQRLFWSexsGtMB1ibR30J3PwfQvJ71356+A4YNjGGCNuZku9mwstj1/uk7Aiy5GYim3dj1orzM0mn0GZG7hU8ihtcRIkz2IOP2jwFqEsQTrQ9SdQTpUZyqkwH9BA4gBuoAaieMkyxPPfd/f8TFq1l3LUHocd2RAmRbbNMqfK+TQ EhQOgWYw k3gArwvX3d89DOJKOH72n4Z7kOSS5CkccP73AonBTKSkIXECafzta8tV2mHQvqGtzzZ9hnMVRQi4tyCcfkJFGlib85J6LZhwn2yVsITwzRHp5TG0xHpjEPPawvH2+scIuPZHzkqQneKwFBFkl24ojD5ISRbIftHX7fqjFzVHkwTls9oVinXII3Sn/yz5cKamuucgMw0DRn0GnGNuZLTqinqfzB1P0NZ5frmGtcPP8hc28wIYM3P9Bp99Xi5nQRpa2Qj9ofacTsaVrd4HrT0oLot0KAPvxV3Dk1FwtdW+vpsMkFaVIBYxAsQZDSw== 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: List-Subscribe: List-Unsubscribe: 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 Cc: Guo Ren Cc: Arnd Bergmann Cc: linux-m68k@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual Reviewed-by: Ryan Roberts Acked-by: David Hildenbrand --- arch/m68k/include/asm/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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