From c843ff95a22d77805753edef8dc3a8f3787e1112 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Sun, 8 Mar 2026 18:55:25 +0300 Subject: [PATCH] fix: add -Wno-error to CFLAGS_MODULE for NVIDIA kernel 6.1 compat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get_dma_ops() return type changed in kernel 6.1 — GCC treats int-conversion warning as error. Suppress with -Wno-error to allow build to complete. Co-Authored-By: Claude Sonnet 4.6 --- iso/builder/build-nvidia-module.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iso/builder/build-nvidia-module.sh b/iso/builder/build-nvidia-module.sh index df3f837..c54f77c 100644 --- a/iso/builder/build-nvidia-module.sh +++ b/iso/builder/build-nvidia-module.sh @@ -91,7 +91,7 @@ echo "=== building kernel modules ($(nproc) cores) ===" cd "$KERNEL_SRC" make -j$(nproc) \ KERNEL_UNAME="$KVER" SYSSRC="$KDIR" \ - ${GCC_INCLUDES:+CFLAGS_MODULE="-I${GCC_INCLUDES}"} \ + CFLAGS_MODULE="${GCC_INCLUDES:+-I${GCC_INCLUDES}} -Wno-error" \ modules 2>&1 | tail -10 # Collect outputs