From patchwork Tue Mar 26 02:16:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgecombe, Rick P" X-Patchwork-Id: 13603259 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E3B6C54E64 for ; Tue, 26 Mar 2024 02:17:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E16506B0088; Mon, 25 Mar 2024 22:17:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DC8366B0089; Mon, 25 Mar 2024 22:17:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C67A56B008A; Mon, 25 Mar 2024 22:17:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id AE7786B0088 for ; Mon, 25 Mar 2024 22:17:21 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 851FBA0456 for ; Tue, 26 Mar 2024 02:17:21 +0000 (UTC) X-FDA: 81937578282.22.BE3ACF1 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by imf02.hostedemail.com (Postfix) with ESMTP id ABFF58000A for ; Tue, 26 Mar 2024 02:17:19 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=VrgkwJWe; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of rick.p.edgecombe@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=rick.p.edgecombe@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711419439; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=9iNRvc7iFJ+XFy7R8MCKvmRON4n0WTGmKnRuJ6853Sc=; b=PyspRc+LX434zoxdt03Gi61aYSX2A5bz7y26jCsdnNYCyc6RSTlUiKoQ8ZVDMmZ5CCMuAO 5ze6NbXHTNiJReuM/qXnAmd9yICd5NavIL9ItlCaZQERzTbIzko0Y6Ywu29GT+vhq6s4EZ +mHHdNdtZFr/ZU+riX/XGE0RQzucL8E= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=VrgkwJWe; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of rick.p.edgecombe@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=rick.p.edgecombe@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711419439; a=rsa-sha256; cv=none; b=4D7h2RZZCfmEEJBZifSu4xg29kWmvPtNn/ubZ3f2pqGIYdKhuHt32U9v7kg+8dqMDFlilv z90far7GWHkeWRoZDSCohYa9acIckDDQ01iUH8rx7YlXKhxxUAnScSCSiK8D6g2aA8rmS7 m8Ho4GvM0OU0YKyVaAt1As0VMra/mxs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711419440; x=1742955440; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=naXFIdNU33tz38vUXdohRFxUFMIrzK3pZH6Hd6XFg2c=; b=VrgkwJWeKwCqBqlfIW04HHa8jh9p6KYdEXdcEGCUNaMffJwuSHneSlaV qOPlZbBFcrhZpk9glOENs8VGniuRlR26eOzRVlPkqqccwSIjSYCSeTLB7 a2frroVQbeGzAxywyQ9wlKo3qjwGQPV2Rf2/DgWjketJczu7P6VwakimP x307rXKhNrAiGmve7C2zFNCHknSJTi6oe4Cu5XmdXfkvEs8TJmGyAg5U6 oqdyDz8eWzWHRH6chgXF/kTPSRZkerScJ4GOKyNU1oFhKnkuC0Jg1rt+f rutcX5LfR7b7UuBHBK+1lCBCeo20TA+6FqA1F98HEuvtvOzdosAjFe4Nl Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11024"; a="6564246" X-IronPort-AV: E=Sophos;i="6.07,154,1708416000"; d="scan'208";a="6564246" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 19:17:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,154,1708416000"; d="scan'208";a="20489877" Received: from rpwilson-mobl.amr.corp.intel.com (HELO rpedgeco-desk4.intel.com) ([10.251.11.187]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 19:17:15 -0700 From: Rick Edgecombe To: Liam.Howlett@oracle.com, akpm@linux-foundation.org, bp@alien8.de, broonie@kernel.org, christophe.leroy@csgroup.eu, dave.hansen@linux.intel.com, debug@rivosinc.com, hpa@zytor.com, keescook@chromium.org, kirill.shutemov@linux.intel.com, luto@kernel.org, mingo@redhat.com, peterz@infradead.org, tglx@linutronix.de, x86@kernel.org Cc: rick.p.edgecombe@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v4 04/14] mm: Remove export for get_unmapped_area() Date: Mon, 25 Mar 2024 19:16:46 -0700 Message-Id: <20240326021656.202649-5-rick.p.edgecombe@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326021656.202649-1-rick.p.edgecombe@intel.com> References: <20240326021656.202649-1-rick.p.edgecombe@intel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: ABFF58000A X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 6iyaaj8bmjz85z9wsjoqd5ofocokan7i X-HE-Tag: 1711419439-398090 X-HE-Meta: U2FsdGVkX1+b7da2KhhxUh9l012O5XTiFmOu6w0Vga+8zDWQRih3E/ZegN/BwmDX72SmI/I7wheTX1zAuEBeqSSsVC22mQ1Ax0Hswy9IOibiUwWqF4A1/pm0YW9LEj3QGyKskOJ3oVLpPjMZoEPPbxdnrXBi0Ep96lEgRdunlSqEq+oA4TmJo5AmBBlEITw/u4vo0gi9uhBProk1cQAgP4oyDp9SJPSgBR5V3Uz2zSJ82mExacVmB0k6lR/Rj6UFklX+OC5JC9YhVGqHbBKmyWS4+omSs/BPIPht/g684fwoPyzSVz/X6GJmaYoUzBi7OEcgLUMLZ2/XmbJRkqcgxiwcG8WDDEtJ/afUlU+A9pgIc8SHFfVea23p2M2DegAkeqF2/5Y6el7pqDjLbwVaUcJK5anRsEu1gYoqyOGqaPmr0WsMZuOKdxpKTmy7WPS/ZoAjVc4rBrp2ATFL/HZ38l5Lp2V//gA0BilsWZH55aj0VTmqjpfSmQXDgFymvJzMisQ9nJ0ufUwGrPMHUrKDa+vvDZmogAIRkY5IVl4hH2VvttGRpsuwHptXjkMVPwhKeIyRS5A+pikngLCBR9XsXh5gCMiCsd2zOJz1r4OSSbPTvzHjXH/XnjcdP265Vxt9anWwscmQkMxvrOqIE+BC4/dE/yYSQ2DsQq5hKVs7RxpctQ5QBMv0REAV/yDP+7vI3RunUnRMKXZOqLztTDK3fbfZO7SHQpxiUFhfCj3+0Xtrl2raKsspNJ0q7TycA/Y4oObMtqs4O+n6sOd7/GEffuZaN/MWSHwSUgMIFlidVroN3RXW/lYhn+8dqMFyxd5eCM1qPA/WUj5SFQJGIFudKOax3nuTTdC7FwNMEpb5HFTjGlxWwFi6geVbnJ10OVYcjR6tASFG6F89I1avFiRgFs+LmeB/LVgZpOTBQ26MqyNCdmVApFc1zg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The mm/mmap.c function get_unmapped_area() is not used from any modules, so it doesn't need to be exported. Remove the export. Signed-off-by: Rick Edgecombe --- v4: - New patch split from "mm: Use get_unmapped_area_vmflags()" (Christophe Leroy) --- mm/mmap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 2bd7580b8f0b..d160e88b1b1e 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1887,8 +1887,6 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, return error ? error : addr; } -EXPORT_SYMBOL(get_unmapped_area); - unsigned long mm_get_unmapped_area(struct mm_struct *mm, struct file *file, unsigned long addr, unsigned long len,