[PATCH v2 2/2] Fix the source file annotation information for the "FOLL_WRITE" macro copied.

From: peng8420 . li

Date: Fri Nov 14 2025 - 11:11:42 EST


From: "peng8420.li" <peng8420.li@xxxxxxxxx>

The 'FOLL_RITE' of the copied source is located in mm_types. h of mm, not mm. h, so fix it.

Suggested-by: "David Hildenbrand (Red Hat)" <david@xxxxxxxxxx>
Signed-off-by: peng8420.li <peng8420.li@xxxxxxxxx>
---
tools/testing/selftests/mm/gup_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/mm/gup_test.c b/tools/testing/selftests/mm/gup_test.c
index 75f7134d529d..40c1538a17b4 100644
--- a/tools/testing/selftests/mm/gup_test.c
+++ b/tools/testing/selftests/mm/gup_test.c
@@ -17,7 +17,7 @@

#define MB (1UL << 20)

-/* Just the flags we need, copied from mm.h: */
+/* Just the flags we need, copied from the kernel internals. */
#define FOLL_WRITE 0x01 /* check pte is writable */

#define GUP_TEST_FILE "/sys/kernel/debug/gup_test"
--
2.43.0