From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D29A33932D1; Wed, 23 Sep 2026 04:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790137963; cv=none; b=NGUFdsNjBf6kvekk+DCbXgRreKrb/n6AY4F896U9HsSqjKYqUxZp0h3PuUFugh2b7DvfwIH891MQqCgoAh2zD/tbiGW2KRrFuBYo7rTPgW3yiMreauivx+cNdkFo3qL3YIG+20Zi9cCys+HYBYI8+m8CAqd3LuPBNH8rYFFbT4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790137963; c=relaxed/simple; bh=kwgxuuHKPugXD4uaHhdRyKDvpmpMLLZwxJxp7qromY4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AfthuyY+9RFJKWsfeFjnivFpS2ajqga4tkPMLyCjl8NU/9z8Kw+vhDjhFQIX7oFonMieEkmUuGnJlQpaxlaex7j1y5e0tc2aX5h/5U1zFC8LyGdFjp/LJl8zlDhFIx0HYhvIa5T1AUbXaUf8lLTMqoPuj6XCwr2ThpA94adNZP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=ndI1uH6e; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="ndI1uH6e" 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 966901A25; Tue, 22 Sep 2026 21:32:35 -0700 (PDT) Received: from localhost (a085714.arm.com [10.164.19.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 533DA3F86C; Tue, 22 Sep 2026 21:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1790137959; bh=kwgxuuHKPugXD4uaHhdRyKDvpmpMLLZwxJxp7qromY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ndI1uH6ezC/RE24KftyOi+TwxAWCteFIfAIE2ap3B/odxTDXRFbfnm27Hcp16vhSK zm8CRYHRLsE/0Mex87/JrGOwfOSvKmiGKWGnGANtSggUbLXGnL3eVayi0moOi+YPSl TI0n9+OMf+k5CQjCNZx8mHjCTCn7JeDMOcEHID/Q= From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , David Hildenbrand , Andrew Morton , Alexander Gordeev , Gerald Schaefer , Huacai Chen , WANG Xuerui , Helge Deller , loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] s390/mm: Drop all pxdp_get() Date: Wed, 23 Sep 2026 10:02:20 +0530 Message-ID: <20260923043226.331880-2-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260923043226.331880-1-anshuman.khandual@arm.com> References: <20260923043226.331880-1-anshuman.khandual@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Current platform specific pxdp_get() helpers are exact same as the default ones defined in the generic MM header (include/linux/pgtable.h) thus making them redundant. Just add required forward declarations. Cc: Alexander Gordeev Cc: Gerald Schaefer Cc: linux-s390@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Signed-off-by: Anshuman Khandual --- arch/s390/include/asm/pgtable.h | 35 +++++---------------------------- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index e882663a58e77..0a0b0ec42b624 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -25,6 +25,11 @@ #include #include +static inline pte_t ptep_get(const pte_t *ptep); +static inline pud_t pudp_get(const pud_t *pudp); +static inline p4d_t p4dp_get(const p4d_t *p4dp); +static inline pgd_t pgdp_get(const pgd_t *pgdp); + extern pgd_t swapper_pg_dir[]; extern pgd_t invalid_pg_dir[]; extern void paging_init(void); @@ -985,36 +990,6 @@ static inline void set_pte(pte_t *ptep, pte_t pte) WRITE_ONCE(*ptep, pte); } -#define ptep_get ptep_get -static inline pte_t ptep_get(pte_t *ptep) -{ - return READ_ONCE(*ptep); -} - -#define pmdp_get pmdp_get -static inline pmd_t pmdp_get(pmd_t *pmdp) -{ - return READ_ONCE(*pmdp); -} - -#define pudp_get pudp_get -static inline pud_t pudp_get(pud_t *pudp) -{ - return READ_ONCE(*pudp); -} - -#define p4dp_get p4dp_get -static inline p4d_t p4dp_get(p4d_t *p4dp) -{ - return READ_ONCE(*p4dp); -} - -#define pgdp_get pgdp_get -static inline pgd_t pgdp_get(pgd_t *pgdp) -{ - return READ_ONCE(*pgdp); -} - static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { set_pte(ptep, __pte(_PAGE_INVALID)); -- 2.43.0