Re: [PATCH v2] cgroup: Avoid compiler warnings with no subsystems

From: Tejun Heo
Date: Fri Aug 27 2021 - 13:51:10 EST


On Fri, Aug 27, 2021 at 08:04:24AM -0700, Kees Cook wrote:
> + if (CGROUP_SUBSYS_COUNT > 0 && ss)

Can we encapsulate this in a macro so that it's clear (or at least
consolidated) why we need these without adding a comment in each spot?

Thanks.

--
tejun