[PATCH] perf stat: Remove duplicated include in stat-shadow.c

Yang Li posted 1 patch 2 months, 2 weeks ago
tools/perf/util/stat-shadow.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] perf stat: Remove duplicated include in stat-shadow.c
Posted by Yang Li 2 months, 2 weeks ago
The header files rblist.h is included twice in stat-shadow.c,
so one inclusion of each can be removed.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22933
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 tools/perf/util/stat-shadow.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c
index 2b4950f56fae..abaf6b579bfc 100644
--- a/tools/perf/util/stat-shadow.c
+++ b/tools/perf/util/stat-shadow.c
@@ -15,7 +15,6 @@
 #include <linux/zalloc.h>
 #include "iostat.h"
 #include "util/hashmap.h"
-#include "rblist.h"
 #include "tool_pmu.h"
 
 struct stats walltime_nsecs_stats;
-- 
2.43.5
Re: [PATCH] perf stat: Remove duplicated include in stat-shadow.c
Posted by Namhyung Kim 2 months, 1 week ago
On Wed, 23 Jul 2025 15:04:18 +0800, Yang Li wrote:
> The header files rblist.h is included twice in stat-shadow.c,
> so one inclusion of each can be removed.
> 
> 
Applied to perf-tools-next, thanks!

Best regards,
Namhyung