linux/include
Thomas Weißschuh 818783c804
module: make structure definitions always visible
To write code that works with both CONFIG_MODULES=y and CONFIG_MODULES=n
it is convenient to use "if (IS_ENABLED(CONFIG_MODULES))" over raw #ifdef.
The code will still fully typechecked but the unreachable parts are
discarded by the compiler. This prevents accidental breakage when a certain
kconfig combination was not specifically tested by the developer.
This pattern is already supported to some extend by module.h defining
empty stub functions if CONFIG_MODULES=n.
However some users of module.h work on the structured defined by module.h.

Therefore these structure definitions need to be visible, too.

Many structure members are still gated by specific configuration settings.
The assumption for those is that the code using them will be gated behind
the same configuration setting anyways.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Link: https://lore.kernel.org/r/20250711-kunit-ifdef-modules-v2-2-39443decb1f8@linutronix.de
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
2025-07-31 13:51:25 +02:00
..
acpi ACPI updates for 6.17-rc1 2025-07-28 20:44:42 -07:00
asm-generic ARM: 2025-07-30 17:14:01 -07:00
clocksource
crypto crypto: sha1 - Remove sha1_base.h 2025-07-14 11:28:38 -07:00
cxl
drm drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
dt-bindings drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
hyperv
keys
kunit linux_kselftest-kunit-6.17-rc1 2025-07-29 12:43:10 -07:00
kvm KVM/arm64 changes for 6.17, round #1 2025-07-29 12:27:40 -04:00
linux module: make structure definitions always visible 2025-07-31 13:51:25 +02:00
math-emu
media
memory
misc
net bpf-next-6.17 2025-07-30 09:58:50 -07:00
pcmcia
ras tracing, AER: Hide PCIe AER event when PCIEAER is not configured 2025-07-21 16:40:56 -04:00
rdma
rv rv: Retry when da monitor detects race conditions 2025-07-28 16:47:34 -04:00
scsi
soc soc: qcom: spmi-pmic: add more PMIC SUBTYPE IDs 2025-07-16 22:58:03 -05:00
sound ASoC: Updates for v6.17 2025-07-24 14:47:49 +02:00
target
trace drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
uapi drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
ufs
vdso vdso/gettimeofday: Add support for auxiliary clocks 2025-07-18 14:09:39 +02:00
video
xen xen: Remove some deadcode (x) 2025-07-14 09:55:52 +02:00
Kbuild