]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
acpi: numa: Export node_to_pxm()
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Fri, 14 Mar 2025 19:28:51 +0000 (12:28 -0700)
committerWei Liu <wei.liu@kernel.org>
Thu, 20 Mar 2025 21:23:04 +0000 (21:23 +0000)
node_to_pxm() is used by hv_numa_node_to_pxm_info().
That helper will be used by Hyper-V root partition module code
when CONFIG_MSHV_ROOT=m.

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Link: https://lore.kernel.org/r/1741980536-3865-6-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1741980536-3865-6-git-send-email-nunodasneves@linux.microsoft.com>

drivers/acpi/numa/srat.c

index 00ac0d7bb8c9f99aeb3b0250388c1892969da99b..ce815d7cb8f659b18a3a100a05d40cfe46d41308 100644 (file)
@@ -51,6 +51,7 @@ int node_to_pxm(int node)
                return PXM_INVAL;
        return node_to_pxm_map[node];
 }
+EXPORT_SYMBOL_GPL(node_to_pxm);
 
 static void __acpi_map_pxm_to_node(int pxm, int node)
 {