Re: [PATCH 6/7] lib: Give XOR_BLOCKS, RAID6_PQ config opts names
From: Kent Overstreet
Date: Sat Oct 04 2025 - 00:29:33 EST
On Fri, Oct 03, 2025 at 09:14:37PM -0700, Christoph Hellwig wrote:
> On Fri, Oct 03, 2025 at 10:00:48PM -0400, Kent Overstreet wrote:
> > Give these config options names so that they show up under the "Library
> > routes" kernel configuration menu, and can be enabled by distributions.
> >
> > These are needed for bcachefs to be built out of tree.
>
> We do not add hooks for out of tree code, and this applies to you just
> like for everyone else.
That's been the primary purpose of the lib/ kconfig menu. The current
language is no longer quite as explicit as it used to be, but here's a
recent example:
config CRC16
tristate "CRC16 functions"
help
This option is provided for the case where no in-kernel-tree
modules require CRC16 functions, but a module built outside
the kernel tree does. Such modules that use library CRC16
functions require M here.