Skip to contentSkip to conversation

selftest: fix headers in fclog.c

PATCH Applied Jori Koolstra 1 participant 1 message Jul 10 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftest: fix headers in fclog.c

fclog.c does not compile because it is missing fcntl.h, needed for O_RDONLY etc.

There are also some redundant includes that are also in kselftest_harness.h.

---
 tools/testing/selftests/filesystems/fclog.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tools/testing/selftests/filesystems/fclog.c +1 -3
index 551c4a0f395a..593a5136e991 100644
@@ -6,10 +6,8 @@
 
 #include <assert.h>
 #include <errno.h>
+#include <fcntl.h>
 #include <sched.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <sys/mount.h>
 
Signature · 1 line
2.55.0