All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf daemon: Remove a duplicate #include
@ 2021-10-06  6:22 Guo Zhengkui
  2021-10-08 18:16 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: Guo Zhengkui @ 2021-10-06  6:22 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	open list:PERFORMANCE EVENTS SUBSYSTEM,
	open list:PERFORMANCE EVENTS SUBSYSTEM
  Cc: kernel, Guo Zhengkui

There is a "#include <sys/file.h>" in line 10, so remove a duplicate
one in line 1124.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
---
 tools/perf/builtin-daemon.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/perf/builtin-daemon.c b/tools/perf/builtin-daemon.c
index c13201fb09c3..6cb3f6cc36d0 100644
--- a/tools/perf/builtin-daemon.c
+++ b/tools/perf/builtin-daemon.c
@@ -1121,8 +1121,6 @@ static int setup_config(struct daemon *daemon)
 #ifndef F_TLOCK
 #define F_TLOCK 2
 
-#include <sys/file.h>
-
 static int lockf(int fd, int cmd, off_t len)
 {
 	if (cmd != F_TLOCK || len != 0)
-- 
2.20.1


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

* Re: [PATCH] perf daemon: Remove a duplicate #include
  2021-10-06  6:22 [PATCH] perf daemon: Remove a duplicate #include Guo Zhengkui
@ 2021-10-08 18:16 ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2021-10-08 18:16 UTC (permalink / raw)
  To: Guo Zhengkui
  Cc: Peter Zijlstra, Ingo Molnar, Mark Rutland, Alexander Shishkin,
	Jiri Olsa, Namhyung Kim, open list:PERFORMANCE EVENTS SUBSYSTEM,
	open list:PERFORMANCE EVENTS SUBSYSTEM, kernel

Em Wed, Oct 06, 2021 at 02:22:34PM +0800, Guo Zhengkui escreveu:
> There is a "#include <sys/file.h>" in line 10, so remove a duplicate
> one in line 1124.

Thanks, applied.

- Arnaldo

 
> Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
> ---
>  tools/perf/builtin-daemon.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/tools/perf/builtin-daemon.c b/tools/perf/builtin-daemon.c
> index c13201fb09c3..6cb3f6cc36d0 100644
> --- a/tools/perf/builtin-daemon.c
> +++ b/tools/perf/builtin-daemon.c
> @@ -1121,8 +1121,6 @@ static int setup_config(struct daemon *daemon)
>  #ifndef F_TLOCK
>  #define F_TLOCK 2
>  
> -#include <sys/file.h>
> -
>  static int lockf(int fd, int cmd, off_t len)
>  {
>  	if (cmd != F_TLOCK || len != 0)
> -- 
> 2.20.1

-- 

- Arnaldo

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

end of thread, other threads:[~2021-10-08 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-06  6:22 [PATCH] perf daemon: Remove a duplicate #include Guo Zhengkui
2021-10-08 18:16 ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.