diff options
author | Darjan Krijan | 2023-05-22 09:54:13 +0200 |
---|---|---|
committer | Darjan Krijan | 2023-05-22 09:54:13 +0200 |
commit | d888769bcd28ee7dc468fc757cc90b2afd01f62e (patch) | |
tree | e101996e4bac9c9d487bed7c1551a7ad38be6f34 /PwrProfSharedMemOps_linux_6.3.patch | |
parent | a3f65dd310af81114d2ab722b9129ae3ce83eff2 (diff) | |
download | aur-d888769bcd28ee7dc468fc757cc90b2afd01f62e.tar.gz |
Patch for Linux 6.3
Diffstat (limited to 'PwrProfSharedMemOps_linux_6.3.patch')
-rw-r--r-- | PwrProfSharedMemOps_linux_6.3.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/PwrProfSharedMemOps_linux_6.3.patch b/PwrProfSharedMemOps_linux_6.3.patch new file mode 100644 index 000000000000..9305c712d103 --- /dev/null +++ b/PwrProfSharedMemOps_linux_6.3.patch @@ -0,0 +1,14 @@ +--- a/src/PwrProfSharedMemOps.c 2023-05-22 09:25:25.497609732 +0200 ++++ b/src/PwrProfSharedMemOps.c 2023-05-22 09:27:59.994309381 +0200 +@@ -219,7 +219,11 @@ + if (NULL != file && NULL != vma) + { + vma->vm_ops = &sharedBuffer_mmap_vm_ops1; ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) ++ vm_flags_set(vma, VM_RESERVED); ++#else + vma->vm_flags |= VM_RESERVED; ++#endif + vma->vm_private_data = file->private_data; + + pp_anon_inode_mmap_open(vma); |