From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7431C5DF9C for ; Mon, 24 Aug 2026 15:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8n2sUFyNkTeeyJ480adWKOU51gCub2/F4WE3r3BRNf0=; b=c7rzhorQvrEegPnFq42eKPQmXy FNwLKoMyYij7fksZLvJJn61X8ed+Vuv4S7lOxwMHsYH3GCMJyOS4fuBnIb4tCL0nUDR6oDWVLE9lH HeaSQ1E9H09LlZ+0zXxdOZSbPlZsdoQTruEYFMAicJY8tq9tMquKTpgNo2TsZU6xlNkPwZ9WTQsD+ SjHTwd/Ycgpo557PFCPsTZwFtOy3N+In7cC0yzVoiatE66kHGFBAb5F/yWOqIDLuOAWIPeLFENggj Js1+4wuffmI5oUhiTdNsbwoKFhCSQpvLHYseNoTxtQ37DjO9O+cLpUsCBs1xMDzVDmpSyoamlpGyX gkpch57g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wyWwd-0000000Gxy1-0d9I; Mon, 24 Aug 2026 15:50:43 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wyWwa-0000000GxwQ-1Fxx for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2026 15:50:42 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-8487214ad2bso4836406b3a.1 for ; Mon, 24 Aug 2026 08:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1787586639; x=1788191439; darn=lists.infradead.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=8n2sUFyNkTeeyJ480adWKOU51gCub2/F4WE3r3BRNf0=; b=Icpr5OJVzI/ZGQpR09V3wtZh0ZpIHijKFiv0/dYpIoGAi9bzWAbInYHAtDc6Tq4aLB BjmpScVMTThtnz4QDstISghXHm+FsH9ZqqvWACs65UjHZf6hSpUxa2WXHh55bA/b8uMu elQZnZfq16DtIIPin4mNrlvI3z6uZqKiHrqr4X7y+ujnV2HIUmaLUsfu87IkmXWPV1h7 0+vc2FrFcug5LUdWQdi2XZ6CJ2WQzgsgl8ihDm1N6aeuV/mediAp965wW0rh7V0/eNxi lLEXAXqo/Y1TP9dp+naV75cSno57O/MvTEZj58xXKa64nGMujxyPcMXZDgzCkKYMLei5 U3Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787586639; x=1788191439; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=8n2sUFyNkTeeyJ480adWKOU51gCub2/F4WE3r3BRNf0=; b=jTKiW+/VLDzzUYCJyOcKbsRCHYRMi//0kAeILbq4trShLOD1JmCHipXHhkP8H84zFJ kQF+NPm7shMDyHfGH8AYsKImwND/wLhds3NignuS3T3xHjkVDoplY85WndcqKEgicZ3Q 9dbbL7A9siO3AFKpL5k8yWDDyRxKpb+pSjRvSqNdzPF3r9mxLzBlM1kg2NIH5Jfy52Oj dBln1+as3ss5xFkJYvX8vtdHu+OHDHiL9HHLtj8KUt49iwC/aGivl+baqOFkYXKaJqMS dUYL1gjWvVRH9ljuci+68/VwHjnCxYwaNN4YTT7KeDqZpGCjsJ6wmyhhtIPsvS0J4ull R1jw== X-Forwarded-Encrypted: i=1; AHgh+Rpu5Nzuf23G8VbdbZctx4+vxbdU4Xk5mHaPrWOvPTpZT8AYZ0RWyj5wIWnnxLgbka/OIH0l63wOmfaBZBLsO3fX@lists.infradead.org X-Gm-Message-State: AFuF++kzj4wVWY4qmLUlhSAL+E9kSEYxcNX5EtI30v80gHfzx/KrK+zu Zc1ITYZD1RSAurZhsGral1Nwpy0HSmOrGz1rB3xgs8ppb0udcrB4JQil/TiZRSzaxXU= X-Gm-Gg: AR+sD11c0nlg4oVsKtV1i3yVY8mNGHkLAJm9AbrYPq7+D2CE8rqkkcAGRfNTL+Ku7A0 mA7Tl2zDZSQiLRxiOzj6a9V56umoOa9YBdu4lJ0+uZgWdn+iQtBxK7s7XvqGCGAEFA6zMXUQVLj uPSiZupw4Di0txnN/lqTm6uxiuQQtxDT8W9JCJdDavI5cJPkAC1yYSmzpTfoHSx1Ev4dPA9yOoo Pl+IU4JK2ljjzGGQO1+i8JiYfuoUtrI3BWdtgd+HrCvUB6qaaeZC87nTz7uv2ipi8+5VVE36POc BbfyMDsvZYigrWyL9aNYzdL7T0op2K6uc6173W24CXAGaUgjVkeVAdht6t85ZKOPwo00RNpMQdp UgVCo0TaKdw1Qsll6idlCGd6yCA6/lM5hsT9zf045CzGSpBWvGcjYbNYMAt9z2KSzNGD2yDIMPc 5sGeK+24MsSW+5zNxWvv+U8TdUboIu1VCho5v0I1SgRA7PEi0iUiBUwK3C14+AkxSx X-Received: by 2002:a05:6a00:10d1:b0:848:5540:2377 with SMTP id d2e1a72fcca58-851fa070c14mr40910400b3a.17.1787586639434; Mon, 24 Aug 2026 08:50:39 -0700 (PDT) Received: from [100.64.0.1] ([165.225.242.163]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8520ef36048sm2219670b3a.26.2026.08.24.08.50.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2026 08:50:38 -0700 (PDT) Message-ID: <6dae9cae-9665-4dc8-9a49-d6e5acda221b@sifive.com> Date: Mon, 24 Aug 2026 10:50:37 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC V3 8/8] mm: Drop pxd_ERROR() To: Anshuman Khandual Cc: Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , "James E.J. Bottomley" , Helge Deller , Huacai Chen , WANG Xuerui , linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , linux-mm@kvack.org, akpm@linux-foundation.org, david@kernel.org References: <20260818040041.1891769-1-anshuman.khandual@arm.com> <20260818040041.1891769-9-anshuman.khandual@arm.com> From: Samuel Holland Content-Language: en-US In-Reply-To: <20260818040041.1891769-9-anshuman.khandual@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260824_085040_380773_2A4A1D8D X-CRM114-Status: GOOD ( 16.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2026-08-17 11:00 PM, Anshuman Khandual wrote: > There are no more users left for any pxd_ERROR() either in generic MM or in > the platform MM. Hence all these platform macros along with their generic > fallback could be dropped across the tree. > > Cc: linux-alpha@vger.kernel.org > Cc: linux-snps-arc@lists.infradead.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-csky@vger.kernel.org > Cc: linux-hexagon@vger.kernel.org > Cc: loongarch@lists.linux.dev > Cc: linux-m68k@lists.linux-m68k.org > Cc: linux-mips@vger.kernel.org > Cc: linux-openrisc@vger.kernel.org > Cc: linux-parisc@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-riscv@lists.infradead.org > Cc: linux-s390@vger.kernel.org > Cc: linux-sh@vger.kernel.org > Cc: sparclinux@vger.kernel.org > Cc: linux-um@lists.infradead.org > Cc: linux-arch@vger.kernel.org > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > Acked-by: Geert Uytterhoeven # m68k > Signed-off-by: Anshuman Khandual > --- > Changes in RFC V3 > > - Moved ptrval_to_str() as header in a [PATCH 1/8] > - Stopped using pxd_ERROR() in generic MM in [PATCH 2/8] > - Dropped pxd_ERRO() macros from all platforms in this patch > > arch/alpha/include/asm/pgtable.h | 7 ------- > arch/arc/include/asm/pgtable-levels.h | 11 ----------- > arch/arm/include/asm/pgtable.h | 7 ------- > arch/arm/kernel/traps.c | 17 ----------------- > arch/arm64/include/asm/pgtable.h | 15 --------------- > arch/csky/include/asm/pgtable.h | 4 ---- > arch/hexagon/include/asm/pgtable.h | 3 --- > arch/loongarch/include/asm/pgtable.h | 11 ----------- > arch/m68k/include/asm/mcf_pgtable.h | 6 ------ > arch/m68k/include/asm/motorola_pgtable.h | 8 -------- > arch/m68k/include/asm/sun3_pgtable.h | 7 ------- > arch/microblaze/include/asm/pgtable.h | 7 ------- > arch/mips/include/asm/pgtable-32.h | 10 ---------- > arch/mips/include/asm/pgtable-64.h | 13 ------------- > arch/nios2/include/asm/pgtable.h | 7 ------- > arch/openrisc/include/asm/pgtable.h | 7 ------- > arch/parisc/include/asm/pgtable.h | 9 --------- > arch/powerpc/include/asm/book3s/32/pgtable.h | 2 -- > arch/powerpc/include/asm/book3s/64/pgtable.h | 7 ------- > arch/powerpc/include/asm/nohash/32/pgtable.h | 2 -- > .../powerpc/include/asm/nohash/64/pgtable-4k.h | 3 --- > arch/powerpc/include/asm/nohash/64/pgtable.h | 5 ----- > arch/riscv/include/asm/pgtable-64.h | 9 --------- > arch/riscv/include/asm/pgtable.h | 4 ---- > arch/s390/include/asm/pgtable.h | 11 ----------- > arch/sh/include/asm/pgtable-3level.h | 3 --- > arch/sh/include/asm/pgtable_32.h | 8 -------- > arch/sparc/include/asm/pgtable_32.h | 3 --- > arch/sparc/include/asm/pgtable_64.h | 10 ---------- > arch/um/include/asm/pgtable-2level.h | 7 ------- > arch/um/include/asm/pgtable-4level.h | 13 ------------- > arch/x86/include/asm/pgtable-2level.h | 5 ----- > arch/x86/include/asm/pgtable-3level.h | 11 ----------- > arch/x86/include/asm/pgtable_64.h | 18 ------------------ > arch/xtensa/include/asm/pgtable.h | 4 ---- > include/asm-generic/pgtable-nop4d.h | 1 - > include/asm-generic/pgtable-nopmd.h | 1 - > include/asm-generic/pgtable-nopud.h | 1 - > 38 files changed, 277 deletions(-) > ... > diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h > index 5d5756bda82e..993a6505eb8f 100644 > --- a/arch/riscv/include/asm/pgtable.h > +++ b/arch/riscv/include/asm/pgtable.h > @@ -559,10 +559,6 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) > return __pte((pte_val(pte) & _PAGE_CHG_MASK) | newprot_val); > } > > -#define pgd_ERROR(e) \ > - pr_err("%s:%d: bad pgd " PTE_FMT ".\n", __FILE__, __LINE__, pgd_val(e)) We can drop the PTE_FMT macro now too. Regards, Samuel