From bc8af6295ad205edad12837bf34860fa1720f96c Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 2 Sep 2026 08:48:55 -0700 Subject: [PATCH] perf tool: Remove unused includes in perf.c Remove perf-sys.h, internal/lib.h (page_size), signal.h, and perf.h since their exports are not used directly in perf.c. Signed-off-by: Ian Rogers Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/perf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 53c50cfd92d6..7e2e667b011f 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -6,10 +6,8 @@ * This is the main hub from which the sub-commands (perf stat, * perf top, perf record, perf report, etc.) are started. */ -#include "perf.h" #include -#include #include #include #include @@ -21,7 +19,6 @@ #include #include -#include // page_size #include #include #include @@ -30,7 +27,6 @@ #include #include "builtin.h" -#include "perf-sys.h" #include "ui/ui.h" #include "util/build-id.h" #include "util/config.h"