2021-04-07 20:43:06

by Chenyi (Johnny)

[permalink] [raw]
Subject: [PATCH-next] perf daemon: Remove duplicate header file

From: Chen Yi <[email protected]>

Delete one of the header files <linux/string.h> that are included twice.

Signed-off-by: Chen Yi <[email protected]>
---
tools/perf/builtin-daemon.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/tools/perf/builtin-daemon.c b/tools/perf/builtin-daemon.c
index 7c4a9d424a64..be1a13d06b9c 100644
--- a/tools/perf/builtin-daemon.c
+++ b/tools/perf/builtin-daemon.c
@@ -6,7 +6,6 @@
#include <linux/zalloc.h>
#include <linux/string.h>
#include <linux/limits.h>
-#include <linux/string.h>
#include <string.h>
#include <sys/file.h>
#include <signal.h>
--
2.31.0


2021-04-07 20:59:21

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: Re: [PATCH-next] perf daemon: Remove duplicate header file

Em Wed, Apr 07, 2021 at 05:49:02PM +0800, [email protected] escreveu:
> From: Chen Yi <[email protected]>
>
> Delete one of the header files <linux/string.h> that are included twice.

Thanks, but I got a patch merged for this already.

- Arnaldo

> Signed-off-by: Chen Yi <[email protected]>
> ---
> tools/perf/builtin-daemon.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tools/perf/builtin-daemon.c b/tools/perf/builtin-daemon.c
> index 7c4a9d424a64..be1a13d06b9c 100644
> --- a/tools/perf/builtin-daemon.c
> +++ b/tools/perf/builtin-daemon.c
> @@ -6,7 +6,6 @@
> #include <linux/zalloc.h>
> #include <linux/string.h>
> #include <linux/limits.h>
> -#include <linux/string.h>
> #include <string.h>
> #include <sys/file.h>
> #include <signal.h>
> --
> 2.31.0
>

--

- Arnaldo