Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/mm: gup_test: fix comment regarding origin of FOLL_WRITE

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

Link: https://lkml.kernel.org/r/20251117154012.197499-2-peng8420.li@gmail.com
Signed-off-by: Peng Li <peng8420.li@gmail.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: David Hildenbrand (Red Hat) <david@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Peng Li and committed by
Andrew Morton
3e700b71 218fbfad

+1 -1
+1 -1
tools/testing/selftests/mm/gup_test.c
··· 17 17 18 18 #define MB (1UL << 20) 19 19 20 - /* Just the flags we need, copied from mm.h: */ 20 + /* Just the flags we need, copied from the kernel internals. */ 21 21 #define FOLL_WRITE 0x01 /* check pte is writable */ 22 22 23 23 #define GUP_TEST_FILE "/sys/kernel/debug/gup_test"