From patchwork Thu Jul 18 01:15:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mary Strodl X-Patchwork-Id: 13735920 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 07305C3DA60 for ; Thu, 18 Jul 2024 01:16:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A86F6B0083; Wed, 17 Jul 2024 21:16:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 759A36B0085; Wed, 17 Jul 2024 21:16:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 622026B0088; Wed, 17 Jul 2024 21:16:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 47D006B0083 for ; Wed, 17 Jul 2024 21:16:20 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id EA805C18A5 for ; Thu, 18 Jul 2024 01:16:19 +0000 (UTC) X-FDA: 82351107678.24.892EDF2 Received: from greygoose-centos7.csh.rit.edu (greygoose-centos7.csh.rit.edu [129.21.49.170]) by imf10.hostedemail.com (Postfix) with ESMTP id 43872C001E for ; Thu, 18 Jul 2024 01:16:18 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=csh.rit.edu header.s=mail header.b=zNgSSi6i; dmarc=pass (policy=none) header.from=csh.rit.edu; spf=pass (imf10.hostedemail.com: domain of mstrodl@csh.rit.edu designates 129.21.49.170 as permitted sender) smtp.mailfrom=mstrodl@csh.rit.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721265333; 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=zE/OWS3rlgbEQ20lilCsWhu+chvi5bJOxjFtvjMB+64=; b=yTfcHxoJRtZQlA50eujdifRQS1csMTI7SH04ej7ozPiYnZZQBZHNqZV4OfYHzbVRHFJErj tzXLY+CCMOuSHH2eIZIc996LXgEYMC1SuvEN/u7x3FCe9cR6ON05vUjPBdcDfHgTaqTP2o SX0+e4UbRppA0e58T5eglr9bCuJYSZw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721265333; a=rsa-sha256; cv=none; b=jSswS8RESAJVD8wNPXS0ngAgncqdG309/zxA6v6RQCx4ZxNf7i6GC5tzUmCVlDzSk3lARb xJibftCv5WLKXhiiAZ8Q9tWnY+FQn0shuuUStca35TjqmTluHFDppJV+Klllzym3HuEDZq wNw+EPxgMF4ZAkycNehd2TESLFdHnDA= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=csh.rit.edu header.s=mail header.b=zNgSSi6i; dmarc=pass (policy=none) header.from=csh.rit.edu; spf=pass (imf10.hostedemail.com: domain of mstrodl@csh.rit.edu designates 129.21.49.170 as permitted sender) smtp.mailfrom=mstrodl@csh.rit.edu Received: from localhost (localhost [127.0.0.1]) by greygoose-centos7.csh.rit.edu (Postfix) with ESMTP id 87D2440D7C89; Wed, 17 Jul 2024 21:16:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=csh.rit.edu; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=mail; t=1721265377; x=1723079778; bh=ToMXT 8Hf3bXOS4rb9tjuA+dcjZqWXki9D94oOuilGS4=; b=zNgSSi6ixLIxk6IlkB8Ca 6YgpHI2jdm5mdByqq6Tu9zPYU/SWXVRn04iJ2E9I1SQdlqk7nnKNlu9rbxAklfOX LPNFjaopGbBfoFQ7sN8DwdsijOkZ69vVgsW9w1ZlEDu5lXQ6KjKofjE7n5LCrv21 ZC4YoTX1covdyhsnCMlqlY= X-Virus-Scanned: amavisd-new at csh.rit.edu Received: from greygoose-centos7.csh.rit.edu ([127.0.0.1]) by localhost (mail.csh.rit.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zvkSNSZoemUH; Wed, 17 Jul 2024 21:16:17 -0400 (EDT) Received: from freedom.csh.rit.edu (freedom.csh.rit.edu [129.21.49.182]) by greygoose-centos7.csh.rit.edu (Postfix) with ESMTP id 2F12840D7C81; Wed, 17 Jul 2024 21:16:17 -0400 (EDT) From: Mary Strodl To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, urezki@gmail.com, hch@infradead.org, linux-mm@kvack.org, lee@kernel.org, andi.shyti@kernel.org, linux-i2c@vger.kernel.org, s.hauer@pengutronix.de, christian.gmeiner@gmail.com, Mary Strodl Subject: [PATCH 1/3] mm: vmalloc: export __vmalloc_node_range Date: Wed, 17 Jul 2024 21:15:02 -0400 Message-ID: <20240718011504.4106163-2-mstrodl@csh.rit.edu> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240718011504.4106163-1-mstrodl@csh.rit.edu> References: <20240718011504.4106163-1-mstrodl@csh.rit.edu> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 43872C001E X-Stat-Signature: qcqqzzo4fhj96bi8p6s31wx4b7jmui1h X-Rspam-User: X-HE-Tag: 1721265378-422588 X-HE-Meta: U2FsdGVkX1+LQc5NODkLZLJ1YfUYzuEYD4kTn28hY3QLHrCELuf8OLyVH9Nv1yXege2qI45HFAYHVsezresPxChpDi9RSAE30IiSLU49kNXv8119Wgzc//Aec3CLL859mGGpwKw8WVUFa8Ucib31se0/5ek16SZW4MoHydL9oiex+EfleJGbLLTHmj070XlalSKdt6lSJKUDN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ender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: After the ability to allocate PAGE_KERNEL_EXEC memory was removed from __vmalloc, this seems like the least invasive way to expose the capability to drivers that need it. Exports __vmalloc_node_range so that drivers can use it. Signed-off-by: Mary Strodl Nacked-by: Christoph Hellwig --- mm/vmalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e34ea860153f..037b7e0fe430 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -3879,6 +3879,7 @@ void *__vmalloc_node_range_noprof(unsigned long size, unsigned long align, return NULL; } +EXPORT_SYMBOL(__vmalloc_node_range_noprof); /** * __vmalloc_node - allocate virtually contiguous memory