[PATCH 0/3] module: make structure definitions always visible

Thomas Weißschuh posted 3 patches 4 months ago
There is a newer version of this series
include/linux/module.h   | 30 ++++++++++++------------------
kernel/module/internal.h |  7 +++++++
lib/kunit/test.c         |  8 --------
3 files changed, 19 insertions(+), 26 deletions(-)
[PATCH 0/3] module: make structure definitions always visible
Posted by Thomas Weißschuh 4 months ago
Code using IS_ENABLED(CONFIG_MODULES) as a C expression may need access
to the module structure definitions to compile.
Make sure these structure definitions are always visible.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (3):
      module: move 'struct module_use' to internal.h
      module: make structure definitions always visible
      kunit: test: Drop CONFIG_MODULE ifdeffery

 include/linux/module.h   | 30 ++++++++++++------------------
 kernel/module/internal.h |  7 +++++++
 lib/kunit/test.c         |  8 --------
 3 files changed, 19 insertions(+), 26 deletions(-)
---
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
change-id: 20250611-kunit-ifdef-modules-0fefd13ae153

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>