| Message ID | 20260818040041.1891769-8-anshuman.khandual@arm.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <SRS0=1nl+=GL=vger.kernel.org=sparclinux+bounces-7270-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tc5newTU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=1nl+=gl=vger.kernel.org=sparclinux+bounces-7270-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hPGRB1t7qz1xxp for <incoming@patchwork.ozlabs.org>; Tue, 18 Aug 2026 14:08:53 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hPGR42VDFz4wHj for <incoming@patchwork.ozlabs.org>; Tue, 18 Aug 2026 14:08:48 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hPGR42PQkz4wJK; Tue, 18 Aug 2026 14:08:48 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c0a:e001:db::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1787026128; cv=pass; b=T0GoY9sX2uwOqC0BmtXsqLYUAbHAl/AN73RwEVfR2IzaITZmlvDX2M80PCYpC38k93CNXu76PXgX5KGMSqzlRT4D//y9RioPOfo+L3bPF4NMQrbpwZfekijcYzqIllxAjDx2D2xvyqa32FE60Wr8L/cmtKmpLbVlLHOT9aXPwcojBEtGRkr/VzqoilnhCLpt38ExdenWq7CPU3D1grwpy/fTCcYRwgxoQl1YRT83LWF/PnXoYLILFfzQAx3NykWZJzONOPIOKO6IKpKGhNJC6JDcyiVlYZ02VMhQf+xH4eocA+Zn8/eK+OEBo3QmV95fXnzMcW0UKN1i0MltxwsnIQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1787026128; c=relaxed/relaxed; bh=VAaSq06o5eLcDNJ2uS+etL1R98Fm8iCuW38Uswmm3gk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rojDzlnyWbW/pAany2nef2eQtwIE0EUdARTaxHz+u0A2qbwwD09aPFigyzfXG424AW4tU060ZMSPJ56S+GYMqXTnlerEFV3kivWM4s/ZZR8NNpyNHcuhJD5pb4Bd4fZpROKnE+uMUQ3uXhyNYVvDaYMD2cVg8TNhY5SSxLEJs/GBt7f9fc4AILeGvXYtSyZY9V8vFuBK6R1vZflXXw8FbNLGKCBgah2cOuwK4ZOBy4hZN6nZhHNFaRAmikMmafFVMrcgP3vP2Mpi6odPcfkak27dYVxmzD1wjWCjbQzRiIpSvgYSWJLKbxsaXGNQI3qCgkUDfPjt1Bbk4BWLr1GAFg== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=arm.com; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tc5newTU; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7270-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tc5newTU; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=sparclinux+bounces-7270-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hPGR04YZkz4wHj for <patchwork-incoming@ozlabs.org>; Tue, 18 Aug 2026 14:08:44 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id E700B30CA7FE for <patchwork-incoming@ozlabs.org>; Tue, 18 Aug 2026 04:01:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CD5F3D8903; Tue, 18 Aug 2026 04:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="tc5newTU" X-Original-To: sparclinux@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 187D73D6479; Tue, 18 Aug 2026 04:01:11 +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=1787025675; cv=none; b=hg1MWyVMP/VBun4EQEcwShnr5EQuLx1JUzdy9QNxvB3W7Cr3uo9Z3XXvJFyt63Q5WaMqs3qC+AbHls0dnkm2ePcNhliivZcbLI4xqTXynjfKYE9LxV61DtO1/tpwolCTyof3DVqRzh0iqeUodgYcmu0k6qxkZ1+If+P3xmLMdqw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787025675; c=relaxed/simple; bh=bPcYhQD4bzcwPSxJ8xkr0nWAdwCuI4IUaFLUJoGzm0o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eC5UYaQ4zABaZsm4R9334D90K/skYyotWkc51/630PmUt+CdQhz1tQyEdNZ6j79U0nmc69P+K1EMgDg2lHfJklp9kCWElUSJgO6n2Axjp5CY7DQ83idX6E36hBvb5YL15AnHk4D0URkKNo4BPBUEkaDMYpotGtIbQGib7slsw4o= 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=tc5newTU; 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 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 8FB111A25; Mon, 17 Aug 2026 21:01:07 -0700 (PDT) Received: from localhost (a085714.arm.com [10.164.19.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 808DB3F66F; Mon, 17 Aug 2026 21:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1787025671; bh=bPcYhQD4bzcwPSxJ8xkr0nWAdwCuI4IUaFLUJoGzm0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tc5newTUC09VdGP5B76jtkjpI9sci0rMLtuInHFPNr66B6IGS4L8Sm6tk4cwRiJ/b 5h9Qek1XhXsg75s765gvhzEXLlsEvx2RUEZ09z5Yy66pdJ94V8xeAxBFwA0Aq2SxNr PoXj1cVq1/8qvOSP1sQSfrCVEOq/UFl8/jpp1jbo= From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-mm@kvack.org, akpm@linux-foundation.org, david@kernel.org Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Rich Felker <dalias@libc.org>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, Helge Deller <deller@gmx.de>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, 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 Subject: [RFC V3 7/8] sh/mm: Stop using pgd_ERROR() Date: Tue, 18 Aug 2026 09:30:40 +0530 Message-ID: <20260818040041.1891769-8-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260818040041.1891769-1-anshuman.khandual@arm.com> References: <20260818040041.1891769-1-anshuman.khandual@arm.com> Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: <sparclinux.vger.kernel.org> List-Subscribe: <mailto:sparclinux+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:sparclinux+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org |
| Series |
mm: Drop pxd_ERROR()
|
expand
|
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 8d65e60688dc..93921109f4e6 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -52,10 +52,8 @@ static pte_t *__get_pte_phys(unsigned long addr) pmd_t *pmd; pgd = pgd_offset_k(addr); - if (pgd_none(*pgd)) { - pgd_ERROR(*pgd); + if (pgd_none(*pgd)) return NULL; - } p4d = p4d_alloc(NULL, pgd, addr); if (unlikely(!p4d)) {