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

From: Christoph Hellwig
Date: Thu Oct 10 2024 - 05:38:49 EST


On Wed, Oct 09, 2024 at 11:40:22PM +0800, Kuan-Wei Chiu wrote:
> nmi_backtrace.o win_minmax.o memcat_p.o \
> - buildid.o objpool.o union_find.o
> + buildid.o objpool.o
>
> +lib-$(CONFIG_CPUSETS) += union_find.o

The usual way would be to have a new symbol selected by
CPUSETS rather than hardcoding the user here in lib/