linux-stable/tools/testing/selftests/memfd
Michael Ellerman 1c49e3783f selftests/memfd: Fix implicit declaration warnings
The memfd tests emit several warnings:

  fuse_test.c:261:7: warning: implicit declaration of function 'open'
  fuse_test.c:67:6: warning: implicit declaration of function 'fcntl'
  memfd_test.c:397:6: warning: implicit declaration of function 'fallocate'
  memfd_test.c:64:7: warning: implicit declaration of function 'open'
  memfd_test.c:90:6: warning: implicit declaration of function 'fcntl'

These are all caused by the test not including fcntl.h.

Instead of including linux/fcntl.h, include fcntl.h, which should
eventually cause the former to be included as well.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2020-11-10 14:42:04 -07:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile selftests: add build/cross-build dependency check script 2020-04-23 17:23:20 -06:00
common.c memfd-test: move common code to a shared unit 2018-01-31 17:18:39 -08:00
common.h memfd-test: move common code to a shared unit 2018-01-31 17:18:39 -08:00
config selftests: memfd: add config fragment for fuse 2018-02-13 14:13:53 -07:00
fuse_mnt.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fuse_test.c selftests/memfd: Fix implicit declaration warnings 2020-11-10 14:42:04 -07:00
memfd_test.c selftests/memfd: Fix implicit declaration warnings 2020-11-10 14:42:04 -07:00
run_fuse_test.sh memfd-test: run fuse test on hugetlb backend memory 2018-01-31 17:18:39 -08:00
run_hugetlbfs_test.sh selftests: memfd: split regular and hugetlbfs tests 2018-05-30 15:29:06 -06:00