]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kunit: test: Drop CONFIG_MODULE ifdeffery
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 11 Jul 2025 13:31:38 +0000 (15:31 +0200)
committerDaniel Gomez <da.gomez@samsung.com>
Thu, 31 Jul 2025 11:51:34 +0000 (13:51 +0200)
commit768da2eae8662ca51102794c32d37c17410acbf5
tree1e41ead9c4bbd6b46f8eb50c189af5cc2dd9d0ec
parent818783c804bc051f7faf0ac226b5597f8259c6f8
kunit: test: Drop CONFIG_MODULE ifdeffery

The function stubs exposed by module.h allow the code to compile properly
without the ifdeffery. The generated object code stays the same, as the
compiler can optimize away all the dead code.
As the code is still typechecked developer errors can be detected faster.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Link: https://lore.kernel.org/r/20250711-kunit-ifdef-modules-v2-3-39443decb1f8@linutronix.de
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
lib/kunit/test.c