1 --- kernel/conftest.sh.orig 2017-07-04 19:34:18.849964147 +0200
2 +++ kernel/conftest.sh 2017-07-04 19:40:00.084349448 +0200
4 # Determine if the set_memory_uc() function is present.
7 - #include <asm/cacheflush.h>
8 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
9 + #include <asm/set_memory.h>
11 + #include <asm/cacheflush.h>
13 void conftest_set_memory_uc(void) {
17 # Determine if the set_memory_array_uc() function is present.
20 - #include <asm/cacheflush.h>
21 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
22 + #include <asm/set_memory.h>
24 + #include <asm/cacheflush.h>
26 void conftest_set_memory_array_uc(void) {
27 set_memory_array_uc();
30 # Determine if the set_pages_uc() function is present.
33 - #include <asm/cacheflush.h>
34 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
35 + #include <asm/set_memory.h>
37 + #include <asm/cacheflush.h>
39 void conftest_set_pages_uc(void) {
42 --- kernel/uvm/conftest.sh.orig 2017-07-04 19:41:43.317660686 +0200
43 +++ kernel/uvm/conftest.sh 2017-07-04 19:40:23.248644401 +0200
45 # Determine if the set_memory_uc() function is present.
48 - #include <asm/cacheflush.h>
49 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
50 + #include <asm/set_memory.h>
52 + #include <asm/cacheflush.h>
54 void conftest_set_memory_uc(void) {
58 # Determine if the set_memory_array_uc() function is present.
61 - #include <asm/cacheflush.h>
62 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
63 + #include <asm/set_memory.h>
65 + #include <asm/cacheflush.h>
67 void conftest_set_memory_array_uc(void) {
68 set_memory_array_uc();
71 # Determine if the set_pages_uc() function is present.
74 - #include <asm/cacheflush.h>
75 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
76 + #include <asm/set_memory.h>
78 + #include <asm/cacheflush.h>
80 void conftest_set_pages_uc(void) {
83 --- kernel/nv-vm.c.orig 2017-07-04 20:01:37.098802679 +0200
84 +++ kernel/nv-vm.c 2017-07-04 20:02:23.720384972 +0200
89 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
90 + #include <asm/set_memory.h>
93 static inline void nv_set_contig_memory_uc(nv_pte_t *page_ptr, NvU32 num_pages)
95 if (nv_update_memory_types)