summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-16 11:39:43 +0100
committerSimon Rettberg2024-01-16 11:39:43 +0100
commitbb0c9fb1e3dd374d550c599a54935fb78daffe33 (patch)
tree64b0bd4428129e3a9b6fef1a411ebdf026dcc8aa
parentRemove space before tab (diff)
downloadxloop-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.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}