Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Hamza Mahfooz and committed by
Wei Liu
7c0db8a4 0222eb30

+1
+1
kernel/cpu.c
··· 526 526 527 527 percpu_rwsem_assert_held(&cpu_hotplug_lock); 528 528 } 529 + EXPORT_SYMBOL_GPL(lockdep_assert_cpus_held); 529 530 530 531 #ifdef CONFIG_LOCKDEP 531 532 int lockdep_is_cpus_held(void)