tools: perf: util: Remove duplicate struct declaration
PATCH 1/1 tools: perf: util: Remove duplicate struct declaration
struct target is declared twice. One has been declared at 21st line. Remove the duplicate.
Signed-off-by Wan Jiabing <[email protected]>
--- tools/perf/util/evsel.h | 1 - 1 file changed, 1 deletion(-)
tools/perf/util/evsel.h +0 -1
@@ -157,7 +157,6 @@ struct perf_missing_features {extern struct perf_missing_features perf_missing_features;struct perf_cpu_map ; -struct target ;struct thread_map ;struct record_opts ;
Signature · 1 line
2.25.1
Hello,
Quoted 5 lines · Wan Jiabing
struct target is declared twice. One has been declared at 21st line. Remove the duplicate.
Signed-off-by Wan Jiabing <[email protected]>
Acked-by Namhyung Kim <[email protected]>
I think we can move all the forward declarations to the top (and sort them) as well.
Thanks,
Namhyung
Quoted 19 lines
--- tools/perf/util/evsel.h | 1 - 1 file changed, 1 deletion(-)tools/perf/util/evsel.h +0
-2@@ -157,7 +157,6 @@ struct perf_missing_features {extern struct perf_missing_features perf_missing_features;struct perf_cpu_map ; -struct target ;struct thread_map ;struct record_opts ; --2.25.1
Em Thu, Apr 01, 2021 at 04:19:38PM +0900, Namhyung Kim escreveu:
Quoted 7 lines
Hello,
Quoted 4 lines · Wan Jiabing
struct target is declared twice. One has been declared at 21st line. Remove the duplicate.
Quoted 6 lines
Quoted 1 line
Signed-off-by Wan Jiabing <[email protected]>Acked-by Namhyung Kim <[email protected]>I think we can move all the forward declarations to the top (and sort them) as well.
Thanks, applied.
- Arnaldo