Re: [PATCH v9 13/14] module: Move kdb_modules list out of core code

From: Christoph Hellwig
Date: Thu Mar 03 2022 - 08:37:53 EST


On Wed, Mar 02, 2022 at 08:56:23PM +0000, Christophe Leroy wrote:
> Do we really want to hide the 'struct list_head modules' from external
> world ?
>
> Otherwise we could declare it in include/linux/module.h ?

I'd just move the trivial code that uses it from kernel/kdb/ to
kernel/module/ as it is tied to module internals and just uses the
KDB interfaces exposed to other parts of the kernel.