Re: [PATCH] cgroup: Fix compilation issue due to cgroup_mutex not being exported
From: Michal Koutný
Date: Thu Apr 17 2025 - 05:20:46 EST
Thanks, Gao.
On Thu, Apr 17, 2025 at 07:30:00AM +0000, gaoxu <gaoxu2@xxxxxxxxx> wrote:
> --- a/kernel/cgroup/cgroup.c
> +++ b/kernel/cgroup/cgroup.c
> @@ -90,7 +90,7 @@
> DEFINE_MUTEX(cgroup_mutex);
> DEFINE_SPINLOCK(css_set_lock);
>
> -#ifdef CONFIG_PROVE_RCU
> +#if (defined CONFIG_PROVE_RCU || defined CONFIG_LOCKDEP)
#if defined(CONFIG_PROVE_RCU) || defined(CONFIG_LOCKDEP)
seems more conventional wrt existing code.
But in principle
Acked-by: Michal Koutný <mkoutny@xxxxxxxx>
Attachment:
signature.asc
Description: PGP signature