Hi Andrew,
OK take 2 here :) please apply this fix-patch which both makes sparse happy and
avoids a clang compilation error on this commit.
Cheers, Lorenzo
----8<----
From 553fb3f0fc9f3c351bddf956b00d1dfaa2a32920 Mon Sep 17 00:00:00 2001
From: Lorenzo Stoakes <redacted>
Date: Mon, 10 Nov 2025 17:35:11 +0000
Subject: [PATCH] fixup
Signed-off-by: Lorenzo Stoakes <redacted>
---
include/linux/mm.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 699566c21ff7..a9b8f6205204 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -886,7 +886,7 @@ static inline void vma_flag_set_atomic(struct vm_area_struct *vma, int bit)
vma_assert_locked(vma);
if (__vma_flag_atomic_valid(vma, bit))
- set_bit(bit, &vma->__vm_flags);
+ set_bit(bit, &ACCESS_PRIVATE(vma, __vm_flags));
}
/*
@@ -899,7 +899,9 @@ static inline void vma_flag_set_atomic(struct vm_area_struct *vma, int bit)
static inline bool vma_flag_test_atomic(struct vm_area_struct *vma, int bit)
{
if (__vma_flag_atomic_valid(vma, bit))
- return test_bit(bit, &vma->__vm_flags);
+ return test_bit(bit, &vma->vm_flags);
+
+ return false;
}
static inline void vma_set_anonymous(struct vm_area_struct *vma)
--2.51.0