Hi,
On Wed, 6 Nov 2024, Siddharth Menon wrote:
When CONFIG_LIVEPATCH is disabled, compilation fails due to the required structs from the livepatch header file being undefined. This checks for CONFIG_LIVEPATCH in order to verify that it is enabled before compiling livepatch self-tests.
Reviewed-by: Shuah Khan skhan@linuxfoundation.org Signed-off-by: Siddharth Menon simeddon@gmail.com
tools/testing/selftests/livepatch/test_modules/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
thank you for the patch.
tools/testing/selftests/livepatch/config contains
CONFIG_LIVEPATCH=y CONFIG_DYNAMIC_DEBUG=y
I assumed that these prerequisites are respected but apparently not for building the test modules if I understand it correctly.
Is it possible to fix it in the way that the config file is respected? Or how do kselftests work with that?
Regards, Miroslav