summarylogtreecommitdiffstats
path: root/linux-6.3+-vm_flags_set.patch
diff options
context:
space:
mode:
authorcamb2023-06-06 14:07:48 +0100
committercamb2023-06-06 14:14:47 +0100
commite898d9ba5200dfa9503e8d8e708350b39a65da48 (patch)
tree15ff051664f21ccb336c851d1109c85e663b57ab /linux-6.3+-vm_flags_set.patch
parent04fa06c325ae450bd389ad9c079579ae1f2da19e (diff)
downloadaur-e898d9ba5200dfa9503e8d8e708350b39a65da48.tar.gz
Update for Linux 6.3 build breakages
It appears that we can no longer simply modify vm_flags in a struct vm_area_struct. There are handy accessors now. Added a patch to use them.
Diffstat (limited to 'linux-6.3+-vm_flags_set.patch')
-rw-r--r--linux-6.3+-vm_flags_set.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux-6.3+-vm_flags_set.patch b/linux-6.3+-vm_flags_set.patch
new file mode 100644
index 000000000000..289db448115c
--- /dev/null
+++ b/linux-6.3+-vm_flags_set.patch
@@ -0,0 +1,11 @@
+--- Drivers/Dta/Source/Linux/DtaIal.c 2023-06-06 13:44:08.233215971 +0100
++++ Drivers/Dta/Source/Linux/DtaIal.c 2023-06-06 13:47:26.153399824 +0100
+@@ -786,7 +786,7 @@
+ pDvcData->m_pUserMapping = pUserMapping;
+
+ // Be sure the memory is mapped non-cacheable
+- pVma->vm_flags |= VM_IO;
++ vm_flags_set(pVma, VM_IO);
+ pVma->vm_page_prot = pgprot_noncached(pVma->vm_page_prot);
+
+ RegionStart = pDvcData->m_DtaRegs.m_PciAddr.QuadPart;