From 15c72660fe9a3fddb301ac90175860b14c63ff03 Mon Sep 17 00:00:00 2001 From: Zhang Mingyu <zhang.mingyu@zte.com.cn> Date: Mon, 1 Nov 2021 07:51:52 +0000 Subject: [PATCH] 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> --- samples/fanotify/fs-monitor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/fanotify/fs-monitor.c b/samples/fanotify/fs-monitor.c index 2e08a1807db77..608db24c471e7 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 -- GitLab