[Impact]
While debugging bug 1910277, I found that the test compilation will print some warnings:
memfd_test.c:64:7: warning: implicit declaration of function ‘open’;
memfd_test.c:90:6: warning: implicit declaration of function ‘fcntl’
memfd_test.c:397:6: warning: implicit declaration of function ‘fallocate’;
fuse_test.c:67:6: warning: implicit declaration of function ‘fcntl’
fuse_test.c:261:7: warning: implicit declaration of function ‘open’;
[Test Case]
Build the memfd test in kselftests with:
sudo make TARGETS=memfd
With this fix, these warnings will be gone.
[Where problems could occur]
This fix is just for fixing the test case compilation, it's beyond my imagination to see where the potential problems lies within.
[Impact] test.c: 64:7: warning: implicit declaration of function ‘open’; test.c: 90:6: warning: implicit declaration of function ‘fcntl’ test.c: 397:6: warning: implicit declaration of function ‘fallocate’; test.c: 261:7: warning: implicit declaration of function ‘open’;
While debugging bug 1910277, I found that the test compilation will print some warnings:
memfd_
memfd_
memfd_
fuse_test.c:67:6: warning: implicit declaration of function ‘fcntl’
fuse_
[Fix]
* 1c49e3783f8899 ("selftests/memfd: Fix implicit declaration warnings")
[Test Case]
Build the memfd test in kselftests with:
sudo make TARGETS=memfd
With this fix, these warnings will be gone.
[Where problems could occur]
This fix is just for fixing the test case compilation, it's beyond my imagination to see where the potential problems lies within.