diff options
| author | Hamza Mahfooz <hamzamahfooz@linux.microsoft.com> | 2025-01-17 15:33:06 -0500 |
|---|---|---|
| committer | Wei Liu <wei.liu@kernel.org> | 2025-02-13 23:43:57 +0000 |
| commit | 7c0db8a4f59d84554a9edc7409bec2ef59063439 (patch) | |
| tree | 8dea2053c650b614ad106d1ca4ea449c502bb3fb /kernel/cpu.c | |
| parent | 0222eb30a3572cc9c4e2f0a3bb37f8f71089f2b6 (diff) | |
cpu: export lockdep_assert_cpus_held()
If CONFIG_HYPERV=m, lockdep_assert_cpus_held() is undefined for HyperV.
So, export the function so that GPL drivers can use it more broadly.
Cc: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20250117203309.192072-1-hamzamahfooz@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250117203309.192072-1-hamzamahfooz@linux.microsoft.com>
Diffstat (limited to 'kernel/cpu.c')
| -rw-r--r-- | kernel/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 07455d25329c..ca56397c3b1d 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -526,6 +526,7 @@ void lockdep_assert_cpus_held(void) percpu_rwsem_assert_held(&cpu_hotplug_lock); } +EXPORT_SYMBOL_GPL(lockdep_assert_cpus_held); #ifdef CONFIG_LOCKDEP int lockdep_is_cpus_held(void) |