From patchwork Thu Jun 15 22:00:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 13281775 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 2A5F1EB64DD for ; Thu, 15 Jun 2023 22:01:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AA6F66B0074; Thu, 15 Jun 2023 18:01:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A57BC8E0002; Thu, 15 Jun 2023 18:01:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 945C36B0075; Thu, 15 Jun 2023 18:01:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 7DAC58E0002 for ; Thu, 15 Jun 2023 18:01:09 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 3AAA340A6F for ; Thu, 15 Jun 2023 22:01:09 +0000 (UTC) X-FDA: 80906353458.06.D2DBCC2 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf22.hostedemail.com (Postfix) with ESMTP id 7E88EC0028 for ; Thu, 15 Jun 2023 22:01:05 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NpiiJP8H; spf=pass (imf22.hostedemail.com: domain of vishal.l.verma@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=vishal.l.verma@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686866466; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=tOhzw+U+EZY622P3OkbIoLu3uYzfsPtlO4bPgBdmAiI=; b=c06jCJabHoSixfckYmNT65xgdyWuqeJloEoSFVmuZ+vMsx4zejySPItjBu10+NWyWSPcZa Klxk7VuBvfVk32UQRkcuTln/+ffgiTFDir+pwUKBnphKW+H8APuZwRHmjXsC54RXSMC0QN cDCA32EkFUxWOgxAuSdxem7QhikQyBs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686866466; a=rsa-sha256; cv=none; b=zF9G+CZUwE/Gx5SZk/pijwzwnEhOst/ggBwST8eICbGWDKn4zBr5zUC6K45d4KZajtmT23 MhR97RFIL4whHpeaIRxasxDN/9FOUkK4TrrKtDExcCi8IGnA7MQ51uHzxdNKUgzhuukeIa qXE2kj09ZD5AISqVdJNc4/3VF6EBLa0= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NpiiJP8H; spf=pass (imf22.hostedemail.com: domain of vishal.l.verma@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=vishal.l.verma@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686866465; x=1718402465; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=U9rnqtpmVZUt30zvfvx/p0VOOSSlAU3FkBQboHUpz0E=; b=NpiiJP8H3KMuqGIC9ccjeHAPUbuuOFMMS98t1b8+7F+rr/3Rqse/iVe0 3Y1gS1h9wwTrZyMmPd7a5YF1KLpOoXsNBuf+5jwgSjHxlnjhh0JrotDX4 vxteu/YK5eut6MBDWb9o7PH9jQBt1RK2hJuPPqp6YZv+gcMXMMDncIwHG bT4ZltmFGtRpNb6XQ8f4uwljQPSTqWieX6YSUlZPLjUNH7yy3Jez1AhKf 1H9LZ13IxNPIpEvr2AifyHognm+r4ymIcnOF/6Nu9Jq8EkK5GNed60BMq 1aV2ZUK6+C4VeRWupLgG1uS6TdjaH6RD29VlyW8xTZmncxBhn3+K7yTkH Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="343791143" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208";a="343791143" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 15:01:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="715770100" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208";a="715770100" Received: from smaurice-mobl.amr.corp.intel.com (HELO [192.168.1.200]) ([10.212.120.175]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 15:01:01 -0700 From: Vishal Verma Date: Thu, 15 Jun 2023 16:00:24 -0600 Subject: [PATCH 2/3] mm/memory_hotplug: Export symbol mhp_supports_memmap_on_memory() MIME-Version: 1.0 Message-Id: <20230613-vv-kmem_memmap-v1-2-f6de9c6af2c6@intel.com> References: <20230613-vv-kmem_memmap-v1-0-f6de9c6af2c6@intel.com> In-Reply-To: <20230613-vv-kmem_memmap-v1-0-f6de9c6af2c6@intel.com> To: "Rafael J. Wysocki" , Len Brown , Andrew Morton , David Hildenbrand , Oscar Salvador , Dan Williams , Dave Jiang Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, Huang Ying , Dave Hansen , Vishal Verma X-Mailer: b4 0.13-dev-02a79 X-Developer-Signature: v=1; a=openpgp-sha256; l=1128; i=vishal.l.verma@intel.com; h=from:subject:message-id; bh=U9rnqtpmVZUt30zvfvx/p0VOOSSlAU3FkBQboHUpz0E=; b=owGbwMvMwCXGf25diOft7jLG02pJDCndXdJPCib2Sa5SyA1aNe/Q/VXJhzimiG36Itn24UN9e H7A1vBbHaUsDGJcDLJiiix/93xkPCa3PZ8nMMERZg4rE8gQBi5OAZiIryzD/3jW5j0urffjip8t rp3lFbThsIdtc7BdjespQffltSv0mBj+ir6LTXEoMz7Re1bMx3xRREVS1t8keY4Wzldm89w9ctL 5AQ== X-Developer-Key: i=vishal.l.verma@intel.com; a=openpgp; fpr=F8682BE134C67A12332A2ED07AFA61BEA3B84DFF X-Rspamd-Queue-Id: 7E88EC0028 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: zadodj9xxhbba3kf363mp571c4kycj8x X-HE-Tag: 1686866465-75242 X-HE-Meta: U2FsdGVkX18lPoJFclbNNJ5O2c36yNd2CNUrYOL821mLQmgIrSHCGNqghPlyT8aNxDfvWcva6CN6xTJ2+D12n4U/R0ofzbpmBxYMWjAwDO6aNfWO7uAufUdiSVTV5q7NwIIYG5c/mxg/6mKJm8OoC8dPO3GRz3LKHmHkuzK4KZyEMlhu77vxyb6bPcSvN/RC/DEcZ2oauNnEvJHgjclWEhwFoPFNpARkCF3Yqrhzh57uVAjEVeMP/uIuomO5xdYt3tEjuZYk5yqglcP4ZB5lANNEkY26qJ2gWB7SdgfTtb9DdbD7pqZCVeGTqQUQ+7e8yS9wf//GXuVTisakuwrfRRNH1LYJc5YBevuRrA+a4lYZryu8WYMUrfl+Q9MQeYdmdj+W6NqL03YBCsW6fS/7AkO2n4AHJssZ5I/M/gi5TmZwFV6pA1s3uuJkfm0oNPAOjbPNJzA42aELZlShrl4yYKNvkJVy+HlX8SpopupHFZl1gR+XnsNpmhVHDeb5Zp89AJ1Ri5apFEGY1BpYsRaxvYjzD4ExSVA4kKodsjaAnH4X5gCkY3Z2A2TTxCGUPcWL/Ak/zBWat8L+Tz89Olyr5HDnlsyR4IISWWkgPCbfOq8UOGJI1+XEGzIaHFPF8ASSaxdtFAp94wlsLoAubLm1K76XMHEJwn1EXIL1BhyQQCFC0YNI35oKQPjI4WdM57JKLgG6QxR3+SSfcX3Kf5ZfJuhQvAk34NLpaBa0PowxST1QaDIWfmkYnVPaLgc6+vkOPsVI/rxnXK2tNEUDG4acvYZIrXitJhrHRtRhEEHWnnd7OktR+SMnxuz7DRyz8C0wiEI7JuT79tgZRAZGUudEJS1xW/bJZcoSJ4sXzGzX3iNsjIANE0VgY2lNKK5As0cYjWJwZmQHYK6pFhQTIJ1J2XMJgWQJvQfLPSZGoZlYiHh84dvT8kGro5cLdIrTmRi1ZWJVamIKU2T/LYtJM8i t857NePu cPz3Q3ZMV3icFFxV52iInpkdODD4vIMxnkM3StAcYzXrjzOOCS9ulO8Y35k2mC/H14KaWUCWXoaWdZCBpUSb+C3HifC9QmI8T1/jh1OL2oSQA7femoTdIikhjuFQpt54K0j2KFyJRgbXdBFBfjxSDtzmKBnSzUvLr5RxcVSrw5Sno4UQSlYBMHD10i/lDE1u8j5UHOTXGYstSbImuBPkZp2UpxQWTLsTuUv5890SdvGAql1g6yC+tVrOjE+/uziRz5fxldott94Op6UoaQuaekMAMeSZss6pd9jwslP77gZmpOpS93+PA2TvTtxf9GFwkJiAqsnJv0Oi+jCwa70/+iY7QmvxSJNkQG+zcNIc8xGLP2x8= 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: In preparation for the dax/kmem driver, which can be built as a module, to use this interface, export it with EXPORT_SYMBOL_GPL(). Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Andrew Morton Cc: David Hildenbrand Cc: Oscar Salvador Cc: Dan Williams Cc: Dave Jiang Cc: Dave Hansen Cc: Huang Ying Signed-off-by: Vishal Verma Reviewed-by: David Hildenbrand --- mm/memory_hotplug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index bb3845830922..92922080d3fa 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1328,6 +1328,7 @@ bool mhp_supports_memmap_on_memory(unsigned long size, mhp_t mhp_flags) IS_ALIGNED(remaining_size, (pageblock_nr_pages << PAGE_SHIFT)); return false; } +EXPORT_SYMBOL_GPL(mhp_supports_memmap_on_memory); /* * NOTE: The caller must call lock_device_hotplug() to serialize hotplug