Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp296751lqk; Sat, 9 Mar 2024 10:19:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVuEY7zdG1Qihh3JRp7QSGfIRPQx1nS1Ra99PD/9w6NEbaSfnTJlhELdYmbrWlACA1bsXBq5rHfCqdAxDsOb9UtKzik45y5XARiaBhnww== X-Google-Smtp-Source: AGHT+IF1WS0vTyWSN/FRY7EeKHEbGp4SBFDWmfuBubgH+N8PA+WZ3LbxU0k+eZA1qUZi4EwYcHhT X-Received: by 2002:a05:622a:86:b0:42e:f980:2f4a with SMTP id o6-20020a05622a008600b0042ef9802f4amr4047397qtw.10.1710008392447; Sat, 09 Mar 2024 10:19:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710008392; cv=pass; d=google.com; s=arc-20160816; b=KKWm5xBlU1y3BZtDknou84zbID4BbIk4vhwhErbQJVub1dFlqyIFu9L0SDPgL83OpM mY4nFXynHnvpXa7IFlG7u+zBPBU1jkGOkCmU6jvyWESEhZ9wzrxWKu6PPgLj2q+t/g0U C2I2vjJoFGhNIXQlpoUEm+M5Ec7k8UjuBM85HRcStTJ+g354nZTkZTARfMZjLAcHTFFj 1k2n5mCp+U/+Wjl9tt5tt3rHLaRL4LzwuopXqAhygAGQLJ6kI5lQrG/V9MGcKSnP57h/ GH2fLQnGItHkbDXrzrBiTXu2MOVSIl2X65SxXWX2m8ZS+kI6A1Ji/bvV/3SBnSaFIxea r8qA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=iQpTMASlu8ngpTK1B2sB6mRBQ3YP1y3GVav73fDBVaY=; fh=SaCKpm3xykZypka9yeSnW1lA8kCGqHGDhgsETBWijhw=; b=LoLFsakAaBdJG0qQci7kd+ZnKlQVG481TMdW+QRwjeN3GIBqaPNpN2n4x5i8SoEwYc XqJMqLXoftYrb6N33Ij0i/JukV8hhzyoRtG8ode4CQQ907KTt+lCFMf4KlAt/RcV3CWP HvknRjhx0ZGB7o2Y7dKAnW8DEI+aL+CXPD3ej6CuXrB0Ci6njVJ9+k3ljathxeYwCHBU 6vZ6URJ1lpipETfDLQVyexiNC8qA1r4GDxwI36MGX+vIZoeqlh2yJiGD5/iFWpzs6Nr+ LlyTDL9o9zASe4vePFNiWQH2fyr+xFTli02w0HcJWMLU35vlPsvjhZsIzx5zNMQqWFkA y2vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MfKqdw6d; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o17-20020ac85a51000000b0042ebbbe5ba3si2082010qta.479.2024.03.09.10.19.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 10:19:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MfKqdw6d; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 22DC61C20D81 for ; Sat, 9 Mar 2024 18:19:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AE1D5B699; Sat, 9 Mar 2024 18:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MfKqdw6d" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D37B47F6B; Sat, 9 Mar 2024 18:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710008149; cv=none; b=ivOEIAkgsxBuogy7kdJqMedLXDgh6KLvlHmdScYkO9552//RworlKuI3qc53zALtPxW9rvVE3oG5pmjxV9nzazG3HfJICHIGLCT2/XdKEH+H+NFJ4w7kQONrVZg0Zhv2vikgVdKJWtw5m11Hfs0dDcWqBgDbeVRIzJKcI11jnak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710008149; c=relaxed/simple; bh=dta8taxZLznZ73Hm8Vw2wZnNUzwcVcgs3YnHIBVJvwI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iJz9XRb/s+6reXTyC2aEWSuWnIyW/Qjn1+ZkBqF4dIQUdbC5rhyPfZ3iGELSZXs3ZG1Y0zg6HiqwqFdHeHfO2yqbviRM2DTcjCtS7i/Cf+aEa9fFI2W70jW4aPvfCbiB9Y6PiwA/t9/aocXzzuZwrL0Onhkb+G6gn0z3bNoc8wU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MfKqdw6d; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 5C0F1C4160E; Sat, 9 Mar 2024 18:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710008149; bh=dta8taxZLznZ73Hm8Vw2wZnNUzwcVcgs3YnHIBVJvwI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MfKqdw6dwQxihsUYTPQNeZi1E+18WOBvaRcVBh4fS75dwCr74aRUCvQFJ3BffuJ/g J0KkSiaGt6PztdD+Dqdr/9CEM9Y0a43L6nO/FaoIFpHoJhLYw4cX66Cptc+BbASywq B+J+mYaChzKKeKxrLxlT1Q2P9tbyhaKXsuO68GyyP/IHuwfamfNDCEjNClxVtBIy6x 6U0NTsMOrh6r2d0NS1nYl94YEn8qela542uZAmAx8R/f6uWS7FgsmVfEoWWkhNGpUy cub75SDbKh+eyPUx/kokfVfK1FxjoeLI7vL7V22QCt6kL+4lZ5nwC2XwCuanrelHwN j/UyDPA5HJCcg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AF0AC54798; Sat, 9 Mar 2024 18:15:49 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 09 Mar 2024 19:15:34 +0100 Subject: [PATCH v2 13/28] sparc32: Drop unused function __get_{phys,iospace} Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240309-sunset-v2-13-f09912574d2c@ravnborg.org> References: <20240309-sunset-v2-0-f09912574d2c@ravnborg.org> In-Reply-To: <20240309-sunset-v2-0-f09912574d2c@ravnborg.org> To: "David S. Miller" , Arnd Bergmann , Andreas Larsson Cc: Helge Deller , Randy Dunlap , John Paul Adrian Glaubitz , Mark Cave-Ayland , Kjetil Oftedal , Thomas Zimmermann , Alexander Viro , Greg Kroah-Hartman , Alan Stern , Jaroslav Kysela , Takashi Iwai , sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sound@vger.kernel.org, Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710008145; l=2013; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=Tn9g7LWvCUdTmkYOsbwfYgbrFZxijEwtAJx+7NQeCwU=; =?utf-8?q?b=3DCRwJWH4NIKj2?= =?utf-8?q?pUC20cRe3vma4EkIV0gjv4/sxZ+rztoot0a1tI/tYYsFyiCb778ngj915BdBC/xx?= H97Jke69DtjYknE/hmBl+iaMQFJP+Pgz8TO+bMrRnn47aDluslMc X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: From: Sam Ravnborg Not used and references stuff that will be dropped later. Signed-off-by: Sam Ravnborg Acked-by: Arnd Bergmann Cc: "David S. Miller" Cc: Arnd Bergmann Cc: Andreas Larsson --- arch/sparc/include/asm/pgtable_32.h | 24 ------------------------ arch/sparc/include/asm/pgtsrmmu.h | 11 ----------- 2 files changed, 35 deletions(-) diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h index 9e85d57ac3f2..92b063531d5c 100644 --- a/arch/sparc/include/asm/pgtable_32.h +++ b/arch/sparc/include/asm/pgtable_32.h @@ -368,30 +368,6 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte) return __pte(pte_val(pte) & ~SRMMU_SWP_EXCLUSIVE); } -static inline unsigned long -__get_phys (unsigned long addr) -{ - switch (sparc_cpu_model){ - case sun4m: - case sun4d: - return ((srmmu_get_pte (addr) & 0xffffff00) << 4); - default: - return 0; - } -} - -static inline int -__get_iospace (unsigned long addr) -{ - switch (sparc_cpu_model){ - case sun4m: - case sun4d: - return (srmmu_get_pte (addr) >> 28); - default: - return -1; - } -} - /* * For sparc32&64, the pfn in io_remap_pfn_range() carries in * its high 4 bits. These macros/functions put it there or get it from there. diff --git a/arch/sparc/include/asm/pgtsrmmu.h b/arch/sparc/include/asm/pgtsrmmu.h index 18e68d43f036..7cb5cbc83211 100644 --- a/arch/sparc/include/asm/pgtsrmmu.h +++ b/arch/sparc/include/asm/pgtsrmmu.h @@ -125,17 +125,6 @@ static inline void srmmu_flush_whole_tlb(void) } -static inline int -srmmu_get_pte (unsigned long addr) -{ - register unsigned long entry; - - __asm__ __volatile__("\n\tlda [%1] %2,%0\n\t" : - "=r" (entry): - "r" ((addr & 0xfffff000) | 0x400), "i" (ASI_M_FLUSH_PROBE)); - return entry; -} - #endif /* !(__ASSEMBLY__) */ #endif /* !(_SPARC_PGTSRMMU_H) */ -- 2.34.1