RE: [PATCH v5 1/3] cpu: export lockdep_assert_cpus_held()

From: Michael Kelley
Date: Wed Jan 22 2025 - 10:38:02 EST


From: Hamza Mahfooz <hamzamahfooz@xxxxxxxxxxxxxxxxxxx> Sent: Friday, January 17, 2025 12:33 PM
>
> 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@xxxxxxxxxxx>
> Signed-off-by: Hamza Mahfooz <hamzamahfooz@xxxxxxxxxxxxxxxxxxx>
> ---
> 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

This series should have been posted as "v6" since "v5" was posted on
January 16th. That notwithstanding,

Reviewed-by: Michael Kelley <mhklinux@xxxxxxxxxxx>
Tested-by: Michael Kelley <mhklinux@xxxxxxxxxxx>