summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorZhang Mingyu <zhang.mingyu@zte.com.cn>2021-11-01 08:51:52 +0100
committerJan Kara <jack@suse.cz>2021-11-01 13:17:47 +0100
commit15c72660fe9a3fddb301ac90175860b14c63ff03 (patch)
tree0cb164cf80da87a3d65452a7e2f2d3577511a2f3 /samples
parentsamples: Fix warning in fsnotify sample (diff)
downloadlinux-15c72660fe9a3fddb301ac90175860b14c63ff03.tar.xz
linux-15c72660fe9a3fddb301ac90175860b14c63ff03.zip
samples: remove duplicate include in fs-monitor.c
'sys/types.h' included in 'samples/fanotify/fs-monitor.c' is duplicated.It is also included on 15 line. Link: https://lore.kernel.org/r/20211101075152.35780-1-zhang.mingyu@zte.com.cn Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Zhang Mingyu <zhang.mingyu@zte.com.cn> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'samples')
-rw-r--r--samples/fanotify/fs-monitor.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/samples/fanotify/fs-monitor.c b/samples/fanotify/fs-monitor.c
index 2e08a1807db7..608db24c471e 100644
--- a/samples/fanotify/fs-monitor.c
+++ b/samples/fanotify/fs-monitor.c
@@ -12,7 +12,6 @@
#include <sys/fanotify.h>
#include <sys/types.h>
#include <unistd.h>
-#include <sys/types.h>
#ifndef FAN_FS_ERROR
#define FAN_FS_ERROR 0x00008000