fix: add -Wno-error to CFLAGS_MODULE for NVIDIA kernel 6.1 compat

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 <noreply@anthropic.com>
This commit is contained in:
Mikhail Chusavitin
2026-03-08 18:55:25 +03:00
parent 0057686769
commit c843ff95a2

View File

@@ -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