From 9bc881c359e0c193290ed013d3cfb3faeccac675 Mon Sep 17 00:00:00 2001
From: musover <meoberto@mthree.es>
Date: Thu, 23 Nov 2023 18:06:01 +0100
Subject: [PATCH] Fix build for 6.6

---
 ashmem/ashmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ashmem/ashmem.c b/ashmem/ashmem.c
index 9c38c9e..7644c8a 100644
--- a/ashmem/ashmem.c
+++ b/ashmem/ashmem.c
@@ -390,7 +390,7 @@ static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
 		ret = -EPERM;
 		goto out;
 	}
-	vma->vm_flags &= ~calc_vm_may_flags(~asma->prot_mask);
+	vm_flags_clear(vma, calc_vm_may_flags(~asma->prot_mask));
 
 	if (!asma->file) {
 		char *name = ASHMEM_NAME_DEF;