Skip to content

Commit 7c0db8a

Browse files
effective-lightliuw
authored andcommitted
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 <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Tested-by: Michael Kelley <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
1 parent 0222eb3 commit 7c0db8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/cpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ void lockdep_assert_cpus_held(void)
526526

527527
percpu_rwsem_assert_held(&cpu_hotplug_lock);
528528
}
529+
EXPORT_SYMBOL_GPL(lockdep_assert_cpus_held);
529530

530531
#ifdef CONFIG_LOCKDEP
531532
int lockdep_is_cpus_held(void)

0 commit comments

Comments
 (0)