Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3058904lqp; Mon, 25 Mar 2024 19:17:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2WS/RvvWS2HSbyd0rjHV9mYXdK9CbzL17YlJIv4+6c3odOiF2rEAZzzAluTzoNyv/UjQMTKVMPd1OmZoNDmCFsePv1jK+n2LR19edsg== X-Google-Smtp-Source: AGHT+IEmq3xHNS6j84sZ5RaO0J6eN402zVaRIylIVkKEaOt2Zmxb5w9HyN+hdYXI8uEPfQM+ksy2 X-Received: by 2002:a05:622a:1aa8:b0:431:39b6:bd28 with SMTP id s40-20020a05622a1aa800b0043139b6bd28mr10544261qtc.48.1711419460995; Mon, 25 Mar 2024 19:17:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711419460; cv=pass; d=google.com; s=arc-20160816; b=AZ4KMofaIwJ0pcJ1iD6hpYo5KG5ikQvQ3DaiLsiPZy+MAHywi/HiwqazqTyHI++pMr R2JkPMLP+iKaMzNdxqVdp/uZyyFQ3ZR22LS8JgQXLSKifU+a/lMN/RbUQ0P/kXZJRSIJ 8yIS6pQnoXXpqPGBa2xZVyh+MauhIb1+0LvztScxaetGI+nCDPCSSK1Wsjb7J9/MRWHv 9GGrefszBElcoGUu1zTLUSYKi3t+bSXgT0oFfh0G5sE47sz7nlg4uYf3XqFNHqwQCEeU hqIYIdi1wlWXzehoSF+HUgcepiwpSOeMUWXybSShwo82rq84nD5tJqvFlkpI5qnqjh4q n6EQ== 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=9iNRvc7iFJ+XFy7R8MCKvmRON4n0WTGmKnRuJ6853Sc=; fh=VdawlRosHP6/TRt7Q+d5dFfk99BjWPbqwi77dk1QfXM=; b=matMXFD4se+DwQTn5ODL/CayOmPWdNryn2d8A4TRtwM6ZVn1RV2KjUfpLnKYgqGO+r Ai/NPSZARQDAEDMB1LJppyQdbk38L8eoi20TidT3dHRSVMsHwyLeml30u1vcWgcDh8U/ O07c9RFg39cVBIwj6vpC4Dgcjg3lWnoSxQ03kSEPD8OHFv1Tz+7IkLKOhwXySDSiDt2u 2BrDEGMs3dFWT9Xji01Js01Mlsh0+bGXl3jhT9MbWY5/1sgXGzd0w0eVi04Vg1uncIMO Zti2Xv2zLhIssqoxxPIpe8rte0ZfU8OiumUYVKef4a9yLyCqaIwz3u6yjJM8WitTulof u6fA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UoMGkBH0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id hg10-20020a05622a610a00b004313be34033si6058876qtb.719.2024.03.25.19.17.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 19:17:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118282-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=@intel.com header.s=Intel header.b=UoMGkBH0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 B66E51C31F48 for ; Tue, 26 Mar 2024 02:17:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D76984D3C; Tue, 26 Mar 2024 02:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UoMGkBH0" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 02DAF524D8 for ; Tue, 26 Mar 2024 02:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711419439; cv=none; b=uA6WZkFgQMiBk6SqKSb6vtzxN+4xbc6xaY2MBnfBwyH6YWqAUadUBTPB6gBCkgleTjs504Ffzg993ZSjYTRWrPyBUbMle4mhxK17pSY5jIRw6UUbJbIKbJu9/KImxRDDwwExE2qCSa+f7daZVi+3dCP/MCYiVvQhc+3l2iqAWsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711419439; c=relaxed/simple; bh=naXFIdNU33tz38vUXdohRFxUFMIrzK3pZH6Hd6XFg2c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Q1w2wThnCnExK4gxAQqOQu4IE10br4wKfCy0F2uPXoxNDSxK+ATur/qwrUZyPa+Bn5StpA4et8VDDAeH+0cKnm8e0RuECI2f6G4hrsT17mdHOxl+vaf9P/E3+G4r/1W2lE+2TRuI7MJGSjBC2vDWHB7aKiXB40naYZBT84iECPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=UoMGkBH0; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711419438; x=1742955438; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=naXFIdNU33tz38vUXdohRFxUFMIrzK3pZH6Hd6XFg2c=; b=UoMGkBH0uyS2VTPaOfQNePoojtX6b6tOhiPrnTlyKTpqQyxJAct16hjC UxqOxwDvuxRkqQJaKtjDmfOzUYBwjkUZcvH8rxAjGl5T30Q0cZ7B4ieAf F7tzGnXLtoPMJndRVMQgvleUfHLAg2GmFzevk+1LKXLz1RTYag4ZKmuks dyCLCMj/J0HexByKOFa6funmPMKnTvEIodD7T1nty9P8PQX9dmK4EPFY6 HVnzcX3fB9HPwOW7wpIQAadRJlfUZrPpkDdpheUjE2FKUaemcoWifNFKu sFYq/fDhLppEL4r4wOZhNISaagNc/q+HLe5x8rj6HjcVVWvSU2xgbGKrk w==; X-IronPort-AV: E=McAfee;i="6600,9927,11024"; a="6564244" X-IronPort-AV: E=Sophos;i="6.07,154,1708416000"; d="scan'208";a="6564244" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, -- 2.34.1