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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user