summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-03-15 16:06:07 +0100
committerSimon Rettberg2024-03-15 16:06:07 +0100
commita9bb7a914d51d4c9ce171840b18323678d25d30e (patch)
treea1aff0ed13c67f4d43654d4fd6fbfdd2cf60a6cd
parentgithub: Update checkout action, base image (diff)
downloaddnbd3-a9bb7a914d51d4c9ce171840b18323678d25d30e.tar.gz
dnbd3-a9bb7a914d51d4c9ce171840b18323678d25d30e.tar.xz
dnbd3-a9bb7a914d51d4c9ce171840b18323678d25d30e.zip
cmake: Turn modpost errors into warnings
Default changed some time between 6.1 and 6.6. As we build the module for different kernel versions by fetching the kernel sources and not compiling the whole kernel first, modpost always complains aboit missing symbols after compilation. Ignore this as it's expected to happen.
-rw-r--r--cmake/Kernel.cmake1
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}