lkml.org 
[lkml]   [2021]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] samples: remove duplicate include in fs-monitor.c
On Mon 01-11-21 07:51:52, cgel.zte@gmail.com wrote:
> From: Zhang Mingyu <zhang.mingyu@zte.com.cn>
>
> 'sys/types.h' included in 'samples/fanotify/fs-monitor.c'
> is duplicated.It is also included on 15 line.
>
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: Zhang Mingyu <zhang.mingyu@zte.com.cn>

Thanks. I've added the patch to my tree.

Honza

> ---
> 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 a0e44cd31e6f..0a5f742a77a8 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
> --
> 2.25.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR

\
 
 \ /
  Last update: 2021-11-01 13:19    [W:0.076 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site