fix build with kernel 5.7
[packages/xorg-driver-video-nvidia-legacy-390xx.git] / kernel-5.7.patch
1 diff --git a/kernel/conftest.sh b/kernel/conftest.sh
2 index e0f937d..e2aa328 100755
3 --- a/kernel/conftest.sh
4 +++ b/kernel/conftest.sh
5 @@ -139,6 +139,7 @@ test_headers() {
6      # Arch specific headers which need testing
7      FILES_ARCH="asm/book3s/64/hash-64k.h"
8      FILES_ARCH="$FILES_ARCH asm/set_memory.h"
9 +    FILES_ARCH="$FILES_ARCH asm/pgtable.h"
10      FILES_ARCH="$FILES_ARCH asm/powernv.h"
11      FILES_ARCH="$FILES_ARCH asm/tlbflush.h"
12  
13 @@ -422,6 +423,9 @@ compile_test() {
14              # Determine if the set_memory_array_uc() function is present.
15              #
16              CODE="
17 +            #if defined(NV_ASM_PGTABLE_H_PRESENT)
18 +            #include <asm/pgtable.h>
19 +            #endif
20              #if defined(NV_ASM_SET_MEMORY_H_PRESENT)
21              #include <asm/set_memory.h>
22              #else
This page took 0.02656 seconds and 3 git commands to generate.