Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp285816lqh; Thu, 28 Mar 2024 01:49:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWk4cGHcpRolYMS4jjOamRj3AoQxXba2THLDy9NKqm9dMn2yYuMg+fMV16Rdik3OPrGPYC/sXmUWrD0Aw+UQz5gXrdLdknDzZqmPX0RhA== X-Google-Smtp-Source: AGHT+IG38OToz3ex8EGxKBEEAD+o1l4meBLzevmNb1/or0CpJK6E9z+QK57b4pb+b31nSnbTDCm7 X-Received: by 2002:ad4:470e:0:b0:696:7134:fd8e with SMTP id qb14-20020ad4470e000000b006967134fd8emr1707265qvb.63.1711615749657; Thu, 28 Mar 2024 01:49:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711615749; cv=pass; d=google.com; s=arc-20160816; b=bzdocQ8/3sdrRFHLtwRvPk7yiS6aJLNPBRnTIUANWeuSUvl862gfcRQBiZhn4vWInw 0798umt1Tw+3K41T4Hm3e6kHGY6mTttVEudjBBlh7VWT2Ma5utUGTLhHgxejoeQDrVu7 w8IDEktroPGbIvDANqTcgIEUPGu0iCZ/v8MHdIvLrCk5aEzxbAwO3a18D9N6E6oVvBYm RG8HRqnfPw8ciFXunxuL70TVnlVDthJflW1t1ofqlvktn8Vh/gg7esIoqyJTNsntbR1/ nhJshoCHvU7D8KzvZzKNm7FOvs/9UtRDmijus3NbsO9Dl0EjEM+DNZyCpjTfUO4jJyRd EhIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=zCMkSV4PVRH89Jt8fxqtR3Up+Mt14DI0nqtbUS1nECo=; fh=kYFfu8Qkub7fTjuxqs6SrEo0vbe5D0X0YDKSbtlw9+E=; b=HjaGZg0vFadJnFZXhBYtMpZYzyJXTKOtRp8WS/XQlHfBQcIMS3xd2NqBSF09hCD0Xx /TxxyTg68dOGE670VXSMSKKgameUMTAPg7XdhchCBAaxZvwqyJANfJGx2h7fhDZK9LoW 3wqcWDJJDHxbI4VO6qVgyBqlTf7wwGS32sm5dgmgiIHJlB3oAjCojPW8pteqjPaHUxW8 NLktJdDuhNsk3YaBdRnOEEPxO5bQp4n4cpeYO78+TiFHxHE5eRkfiA257yZ1wE6SL/BQ QQM01Bn0T5k9vySUljvkoD+fnBgc6yKT+lCcpOtcgaCPzE8d2pfNtFJdFLz4jnS5lpCP jJFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="ET/DejbS"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-122601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122601-linux.lists.archive=gmail.com@vger.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 bz3-20020ad44c03000000b00690499346fdsi964013qvb.77.2024.03.28.01.49.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 01:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122601-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=@infradead.org header.s=bombadil.20210309 header.b="ET/DejbS"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-122601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122601-linux.lists.archive=gmail.com@vger.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 5CD031C28B8A for ; Thu, 28 Mar 2024 08:49:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D170954FA0; Thu, 28 Mar 2024 08:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ET/DejbS" 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.subspace.kernel.org (Postfix) with ESMTPS id B90E724219 for ; Thu, 28 Mar 2024 08:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711615732; cv=none; b=A6JNcSNL3Mjsx3zZpvIkCpGCWamM+jFUR0zeLBxbz+Jb7doqvET0toLKlk3axxHIY5LCCi3XI+J2jOdD873MDPtYMnVmM2xW28t/+zcndVJy5et2Q0L+XBZnPMuRLTNbpOViPRkO5sQs8JZ+HwSb0r8IVef8M99trS6dXkskB7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711615732; c=relaxed/simple; bh=o8c7YIBOcbt1WkBAgCD2X25MFi4EJfZ1Tk0WWpnt0OU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qrhxc85L2itp+bO5Nz1JNERSRStTuzrvimbeDWVrMzad5vI4Ylm3lEdRDMzUm0HFrdKuDDAUS2WcwgFVRqkxgR9XT15YjHpNm9x1ycDkJ6hApdC6b5JLJSeD4pUfZgD2XYPggYmkzvLrgMCsHk9nbH9tumUBrRM0de5ap2VTIzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=ET/DejbS; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=zCMkSV4PVRH89Jt8fxqtR3Up+Mt14DI0nqtbUS1nECo=; b=ET/DejbSEnvL9TypvQUKRjgSAP rusSwaRWwkT3oXxeZW04CS+fs3PJ+86x/ZlvhrIhFetkIGOLOTwSCCn8sapkA6kIb55vOrplpjkjJ GbDgrrFv3zf7nnZTXEYW7a6hiLju7f9KYJC07kFko8T+0ZX90xz909Va51SzTz2diVEsu2CspUIc3 QlGesSXoC4YW3kF37FepszRKId3YpNOJgS27/t2tDhMXFI5y3862ezsyMZf/OdyiyhVCPBcIt6N00 fmPBUyXBDKsJS5kO22QYq6Q7nYGxScsz681++QgVFEEgiyuaS7t+cmvbByyK0WliylST0Nmvvz64Z kK+C/x+Q==; Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rplRA-0000000D981-0YMr; Thu, 28 Mar 2024 08:48:50 +0000 From: Christoph Hellwig To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm: unexport get_mem_type Date: Thu, 28 Mar 2024 09:48:31 +0100 Message-Id: <20240328084831.2955605-3-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240328084831.2955605-1-hch@lst.de> References: <20240328084831.2955605-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html get_mem_type is only used pci_remap_iospace and ioremap, no need to export it. Signed-off-by: Christoph Hellwig --- arch/arm/include/asm/mach/map.h | 2 -- arch/arm/mm/mmu.c | 1 - 2 files changed, 3 deletions(-) diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h index 03f456cb53644f..30de16b65297e2 100644 --- a/arch/arm/include/asm/mach/map.h +++ b/arch/arm/include/asm/mach/map.h @@ -50,8 +50,6 @@ extern void debug_ll_io_init(void); static inline void debug_ll_io_init(void) {} #endif -struct mem_type; -extern const struct mem_type *get_mem_type(unsigned int type); #else #define iotable_init(map,num) do { } while (0) #define vm_reserve_area_early(a,s,c) do { } while (0) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index c24e29c0b9a48e..ed43f7b79b5a47 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -350,7 +350,6 @@ const struct mem_type *get_mem_type(unsigned int type) { return type < ARRAY_SIZE(mem_types) ? &mem_types[type] : NULL; } -EXPORT_SYMBOL(get_mem_type); static pte_t *(*pte_offset_fixmap)(pmd_t *dir, unsigned long addr); -- 2.39.2