xf86-video-nvidia: fix 5.7-rc1 build

This commit is contained in:
MilhouseVH 2020-04-13 01:17:56 +01:00
parent 2621087d72
commit 4acc8f277e

View File

@ -0,0 +1,35 @@
From b54cae6b96e4891708ee72d3c98766348c3feece Mon Sep 17 00:00:00 2001
From: MilhouseVH <milhouseVH.github@nmacleod.com>
Date: Mon, 13 Apr 2020 01:30:59 +0100
Subject: [PATCH] NVIDIA 440.82 - Kernel 5.7 Patch
Credit: Isaak I. Aleksandrov, https://gitlab.com/snippets/1965550
---
kernel/conftest.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/kernel/conftest.sh b/kernel/conftest.sh
index 8f807a1..af29636 100755
--- a/kernel/conftest.sh
+++ b/kernel/conftest.sh
@@ -143,6 +143,7 @@ test_headers() {
FILES="$FILES video/nv_internal.h"
FILES="$FILES asm/book3s/64/hash-64k.h"
FILES="$FILES asm/set_memory.h"
+ FILES="$FILES asm/pgtable.h"
FILES="$FILES asm/prom.h"
FILES="$FILES asm/powernv.h"
FILES="$FILES asm/tlbflush.h"
@@ -466,6 +467,9 @@ compile_test() {
# It does not exist on all architectures.
#
CODE="
+ #if defined(NV_ASM_PGTABLE_H_PRESENT)
+ #include <asm/pgtable.h>
+ #endif
#if defined(NV_ASM_SET_MEMORY_H_PRESENT)
#include <asm/set_memory.h>
#else
--
2.20.1