summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2022-02-03 20:49:45 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2022-02-04 09:25:05 -0800
commit07d2505b963b2d30f747dce338211f51068b8765 (patch)
tree500555bd20bdafd762fd0a2705e54a4644b33982 /include
parent6a0fb704b05cd143dfe2c6a4969c41c59a04b330 (diff)
downloadlinux-07d2505b963b2d30f747dce338211f51068b8765.tar.bz2
kselftest/vm: revert "tools/testing/selftests/vm/userfaultfd.c: use swap() to make code cleaner"
With this change, userfaultfd fails to build with undefined reference swap() error: userfaultfd.c: In function `userfaultfd_stress': userfaultfd.c:1530:17: warning: implicit declaration of function `swap'; did you mean `swab'? [-Wimplicit-function-declaration] 1530 | swap(area_src, area_dst); | ^~~~ | swab /usr/bin/ld: /tmp/ccDGOAdV.o: in function `userfaultfd_stress': userfaultfd.c:(.text+0x549e): undefined reference to `swap' /usr/bin/ld: userfaultfd.c:(.text+0x54bc): undefined reference to `swap' collect2: error: ld returned 1 exit status Revert the commit to fix the problem. Link: https://lkml.kernel.org/r/20220202003340.87195-1-skhan@linuxfoundation.org Fixes: 2c769ed7137a ("tools/testing/selftests/vm/userfaultfd.c: use swap() to make code cleaner") Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions