From patchwork Sat Mar 9 18:15:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg via B4 Relay X-Patchwork-Id: 13587749 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MfKqdw6d" 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-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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) */