Merge pull request #8921 from heitbaum/gcc14

xf86-video-nvidia-legacy: patches for linux-6.8 and gcc-14.1
This commit is contained in:
Christian Hewitt 2024-05-24 14:46:34 +04:00 committed by GitHub
commit aceeda9c53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
--- a/kernel/conftest.sh 2024-03-17 06:12:58.410530788 +0000
+++ b/kernel/conftest.sh 2024-03-17 06:12:58.410530788 +0000
@@ -1573,6 +1573,7 @@
;;
drm_available)
+ return
#
# Determine if the DRM subsystem is usable
#

View File

@ -0,0 +1,24 @@
diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
--- a/kernel/conftest.sh 2024-05-10 16:44:09.219463660 +0000
+++ b/kernel/conftest.sh 2024-05-10 16:45:33.696827888 +0000
@@ -196,7 +196,7 @@
}
build_cflags() {
- BASE_CFLAGS="-O2 -D__KERNEL__ \
+ BASE_CFLAGS="-O2 -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -D__KERNEL__ \
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
-nostdinc -isystem $ISYSTEM"
diff -Naur a/kernel/uvm/conftest.sh b/kernel/uvm/conftest.sh
--- a/kernel/uvm/conftest.sh 2024-05-10 16:44:09.206130218 +0000
+++ b/kernel/uvm/conftest.sh 2024-05-10 16:45:45.273592434 +0000
@@ -196,7 +196,7 @@
}
build_cflags() {
- BASE_CFLAGS="-O2 -D__KERNEL__ \
+ BASE_CFLAGS="-O2 -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -D__KERNEL__ \
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
-nostdinc -isystem $ISYSTEM"