ANDROID: ashmem: fix up vm_flags direct access which is not allowed anymore 34/310534/1
authorGreg Kroah-Hartman <gregkh@google.com>
Wed, 5 Apr 2023 13:36:46 +0000 (13:36 +0000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 30 Apr 2024 08:34:20 +0000 (17:34 +0900)
commita2213284e7db8d69626c4154e680cad6393fdb12
treeb199d82edaa175811b6bb99879492cb373498fc6
parent8e5f02e4b056457959a7bc0738eb275c35ffab72
ANDROID: ashmem: fix up vm_flags direct access which is not allowed anymore

Commit 1c71222e5f23 ("mm: replace vma->vm_flags direct modifications
with modifier calls") removed the ability to directly access vm_flags, but
provided wrapper functions to do the task instead.  Use vm_flags_clear()
to fix the build breakage in the ashmem code because of this change.

Fixes: 1c71222e5f23 ("mm: replace vma->vm_flags direct modifications with modifier calls")
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
[sw0312.kim: cherry-pick commit 78ffde117c54 of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I865469c1eacd8d037eaaa85eca65e54f717e8706
drivers/staging/android/ashmem.c