diff options
author | Simon Rettberg | 2024-01-16 11:39:43 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-01-16 11:39:43 +0100 |
commit | bb0c9fb1e3dd374d550c599a54935fb78daffe33 (patch) | |
tree | 64b0bd4428129e3a9b6fef1a411ebdf026dcc8aa | |
parent | Remove space before tab (diff) | |
download | xloop-bb0c9fb1e3dd374d550c599a54935fb78daffe33.tar.gz xloop-bb0c9fb1e3dd374d550c599a54935fb78daffe33.tar.xz xloop-bb0c9fb1e3dd374d550c599a54935fb78daffe33.zip |
Turn modpost errors into warnings, default changed between 6.1 and 6.6
-rw-r--r-- | cmake/Kernel.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Kernel.cmake b/cmake/Kernel.cmake index 232c298..9ecbbba 100644 --- a/cmake/Kernel.cmake +++ b/cmake/Kernel.cmake @@ -41,6 +41,7 @@ macro(add_kernel_module MODULE_NAME KERNEL_BUILD_DIR KERNEL_INSTALL_DIR MODULE_M -C ${KERNEL_BUILD_DIR} M=${CMAKE_CURRENT_BINARY_DIR}/${MODULE_NAME} modules EXTRA_CFLAGS=${KERNEL_C_FLAGS} + KBUILD_MODPOST_WARN=1 KBUILD_EXTRA_SYMBOLS=${MODULE_EXTRA_SYMBOLS}) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${MODULE_NAME}/${MODULE_NAME}.ko COMMAND ${MODULE_BUILD_COMMAND} |