linux-hyperv.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 1/3] cpu: export lockdep_assert_cpus_held()
@ 2025-01-17 20:33 Hamza Mahfooz
  2025-01-17 20:33 ` [PATCH v5 2/3] drivers/hv: introduce vmbus_channel_set_cpu() Hamza Mahfooz
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Hamza Mahfooz @ 2025-01-17 20:33 UTC (permalink / raw)
  To: linux-hyperv
  Cc: Hamza Mahfooz, Michael Kelley, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Thomas Gleixner, Peter Zijlstra,
	linux-kernel

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>
---
v5: new to the series
---
 kernel/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/cpu.c b/kernel/cpu.c
index b605334f8ee6..d3c848d66908 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)
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-13 23:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-17 20:33 [PATCH v5 1/3] cpu: export lockdep_assert_cpus_held() Hamza Mahfooz
2025-01-17 20:33 ` [PATCH v5 2/3] drivers/hv: introduce vmbus_channel_set_cpu() Hamza Mahfooz
2025-01-22 15:39   ` Michael Kelley
2025-01-17 20:33 ` [PATCH v5 3/3] drivers/hv: add CPU offlining support Hamza Mahfooz
2025-01-22 15:40   ` Michael Kelley
2025-01-22 15:37 ` [PATCH v5 1/3] cpu: export lockdep_assert_cpus_held() Michael Kelley
2025-02-11 19:42   ` Hamza Mahfooz
2025-02-13 11:12 ` Thomas Gleixner
2025-02-13 23:45 ` Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).