linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] samples: remove duplicate include in fs-monitor.c
@ 2021-11-01  7:51 cgel.zte
  2021-11-01 12:18 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: cgel.zte @ 2021-11-01  7:51 UTC (permalink / raw)
  To: jack; +Cc: zhang.mingyu, krisman, amir73il, linux-kernel, Zeal Robot

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>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] samples: remove duplicate include in fs-monitor.c
  2021-11-01  7:51 [PATCH] samples: remove duplicate include in fs-monitor.c cgel.zte
@ 2021-11-01 12:18 ` Jan Kara
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2021-11-01 12:18 UTC (permalink / raw)
  To: cgel.zte; +Cc: jack, zhang.mingyu, krisman, amir73il, linux-kernel, Zeal Robot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-01 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01  7:51 [PATCH] samples: remove duplicate include in fs-monitor.c cgel.zte
2021-11-01 12:18 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).