Re: [PATCH] lib/Makefile: Make union-find compilation conditional on CONFIG_CPUSETS

From: Tejun Heo
Date: Wed Oct 09 2024 - 12:46:59 EST


On Wed, Oct 09, 2024 at 11:40:22PM +0800, Kuan-Wei Chiu wrote:
> Currently, cpuset is the only user of the union-find implementation.
> Compiling union-find in all configurations unnecessarily increases the
> code size when building the kernel without cgroup support. Modify the
> build system to compile union-find only when CONFIG_CPUSETS is enabled.
>
> Link: https://lore.kernel.org/lkml/1ccd6411-5002-4574-bb8e-3e64bba6a757@xxxxxxxxxx/
> Suggested-by: Waiman Long <llong@xxxxxxxxxx>
> Signed-off-by: Kuan-Wei Chiu <visitorckw@xxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Andrew, can you please pick up this one?

Thanks.

--
tejun