File wait_on_bit_lock-check_better-cflags.patch of Package x11-video-nvidiaG05

--- kernel/conftest.sh.orig	2024-09-19 12:53:44.026702005 +0200
+++ kernel/conftest.sh	2024-09-19 12:55:49.505255579 +0200
@@ -101,7 +101,7 @@
 build_cflags() {
     BASE_CFLAGS="-O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM"
+-nostdinc -isystem $ISYSTEM -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
 
     if [ "$OUTPUT" != "$SOURCES" ]; then
         OUTPUT_CFLAGS="-I$OUTPUT/include2 -I$OUTPUT/include"
@@ -2381,7 +2381,7 @@
             fi
 
             echo "$CONFTEST_PREAMBLE
-            #include <linux/wait.h>
+            #include <linux/wait_bit.h>
             void conftest_wait_on_bit_lock(void) {
                 wait_on_bit_lock(NULL, 0, NULL, 0);
             }" > conftest$$.c
openSUSE Build Service is sponsored by