Skip to contentSkip to conversation

tools: perf: util: Remove duplicate struct declaration

PATCH Applied Wan Jiabing 3 participants 3 messages Apr 1, 2021 – Apr 2, 2021 perf events

lore
Share & tools
lore
#0 lore raw

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.

---
 tools/perf/util/evsel.h | 1 -
 1 file changed, 1 deletion(-)
tools/perf/util/evsel.h +0 -1
index 6026487353dd..998e5b806696 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw

Hello,

Quoted 5 lines · Wan Jiabing

struct target is declared twice. One has been declared at 21st line. Remove the duplicate.

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
index 6026487353dd..998e5b806696 100644
@@ -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

maintainer Applied
#2 lore raw

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

I think we can move all the forward declarations to the top (and sort them) as well.

Thanks, applied.

- Arnaldo