# \[PATCH 07/16\] cgroup: fix warning when building without any subsys

- From: Tejun Heo \<tj@kernel.org\>
- Date: 2012-10-06 02:14:57 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2012/10/3935131
- Thread: https://ratatoskr.run/linux-arm-kernel/2012/10/67691/t.md

```text
On Fri, Oct 05, 2012 at 04:55:21PM +0200, Arnd Bergmann wrote:
> In a configuration where the base cgroup support is enabled but
> every single cgroup subsys is turned off, CGROUP_BUILTIN_SUBSYS_COUNT
> is zero, which causes the sanity check code in cgroup_load_subsys
> to trigger:
> 
>        BUG_ON(ss->subsys_id >= CGROUP_BUILTIN_SUBSYS_COUNT);
>        BUG_ON(subsys[ss->subsys_id] != ss);

CGROUP_BUILTIN_SUBSYS_COUNT is already gone in mainline.  I suppose
this is no longer necessary?

Thanks.

-- 
tejun
```
