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.