summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorZenghui Yu (Huawei) <zenghui.yu@linux.dev>2026-10-27 20:20:13 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-11-02 18:14:45 -0800
commit1b8fd9a23501bffefa3304ff36f4674b26838c67 (patch)
tree866456933bbee3bad0413a07a290a8a4d082c1c4 /scripts/Makefile.thinlto
parent168ed9c5d5ec2fd326715eba5750c2b69e559ff3 (diff)
downloadlinux-next-1b8fd9a23501bffefa3304ff36f4674b26838c67.tar.gz
linux-next-1b8fd9a23501bffefa3304ff36f4674b26838c67.zip
selftests/mm: fix khugepaged_race build with older glibc
glibc versions before 2.37 do not define MADV_COLLAPSE in <sys/mman.h>, so khugepaged_race fails to build against them (e.g. glibc 2.34): [root@localhost mm]# make CC khugepaged_race khugepaged_race.c: In function 'main': khugepaged_race.c:506:23: error: 'MADV_COLLAPSE' undeclared (first use in this function); did you mean 'MADV_COLD'? 506 | hpage_pmd_size, MADV_COLLAPSE); | ^~~~~~~~~~~~~ | MADV_COLD khugepaged_race.c:506:23: note: each undeclared identifier is reported only once for each function it appears in make: *** [../lib.mk:225: /data/code/mm/tools/testing/selftests/mm/khugepaged_race] Error 1 Include <linux/mman.h> to get the UAPI definition of MADV_COLLAPSE. Link: https://lore.kernel.org/20261027122013.4286-1-zenghui.yu@linux.dev Fixes: 66c374464438 ("selftests/mm: add khugepaged race harness") Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Reviewed-by: Kiryl Shutsemau (Meta) <kas@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Liam R. Howlett <liam@infradead.org> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Michal Hocko <mhocko@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions