From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7A914A92F3 for ; Wed, 2 Sep 2026 15:49:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788364150; cv=none; b=OafIKP47M9riK7+ZAnh8XoTarBodggtfEoFAGoyCjnuRVx83ZVfrYiIq9xBd+5L4JpnEmpFjV0f3OQZ+9sI1+EGiZph8sRSQzkmhkhZCyg2dpdIEB5k4qV7OkjLl63ZgdDba1uQFTrVyttgN8IKFii8UZKZXSsT+4ZgK6u9VyMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788364150; c=relaxed/simple; bh=MXekJXZ5T2i1lOP5yjKvUmgkVu177dnr4EEiTiMxEyo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Content-Type; b=uaf7TDAzWIzawBoodPtxXINBF//qhOvw+B5GbXteCVvCeldlGu2mrlzBy2ynvOGO6TynenYiI18YU0yxTHNL7T26rFpRSk91FHBuVyF9VbPoazNFjQMFXpYBvS/ByXzFZ8hDf5go0a6z10nGHc8T7bunKKFgM/ibmV+ZMVXLd64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ZgTayEbk; arc=none smtp.client-ip=209.85.216.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZgTayEbk" Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-381250979d5so1593007a91.0 for ; Wed, 02 Sep 2026 08:49:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1788364148; x=1788968948; darn=vger.kernel.org; h=content-type:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=tUrm+ROxdJ59YfAdcXGaIH4WCqzrRXNZfGKynOJVM1Q=; b=ZgTayEbk4mi76BuvDGlNvumMkosB0pvqVbWpfSIZJwLEip9T0WHsg3NYqzrDn1GNRF YcaXoSfjJU+13X50nRtA9Im1Si/S76ncNtofn3PzlZWL7Wceo2fUJWIGKkerwAEp5xJC RRpl+QHy0psxeuOB1PKGPuOHH7tZM03T9GyoHqEEaLWDVpBtkqMzdLaTnAH6rnjxgwYm a/oaaTRHg2mjECEmO8uIFWhYMog/qdR9wB/bT4jSb2cw01uY6xRbYOjJLJVMhyswi4i+ IKzGNAjw5eA7638LRuhHHPnO6l87bx1cppnN3DpkfIvvn/eLremswpfs5P2VX8uq5oZz YuUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788364148; x=1788968948; h=content-type:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=tUrm+ROxdJ59YfAdcXGaIH4WCqzrRXNZfGKynOJVM1Q=; b=rLDl4HbqJoMPeRF2Dtwhk/q+tcvWhTUpCLehIA0vWXn31Jw6acNUdH3K5zfmhzt4Q4 aukAD97fh2zMp/pLXShpw3N0sOkr0nKbEPyjAeToUsVKFQna9RyN/C6a9FnOJc+LctmQ W9s4ZXXPWmUJ/FzPaCzqIFAIAK5F+h5cNU08O0Pmc2XTGHkbFXHjyXgaSFug5l4DYsf9 eBRzcjb9Of+FcAUOoS1wWm5WbZ/UxHyeALxUE20ATsbL86QpY7CAIaymOfEE3bDp2i3M 0LkBEc80+92YJvGv5ne9TBrg/iy3vPgrmUNxFMBOkLFUR8V9vfpqDeb7+Dplobmr8Zl5 fggA== X-Forwarded-Encrypted: i=1; AKwUvBxF91GbazRvdTC0nAWlI+LtnLz5wvRfcFJ61E3371o6NuV7aYr47TJSyu5F4Sfdd/kDXpN8SjcNKX+hb0k=@vger.kernel.org X-Gm-Message-State: AFuF++kMgepxRFz1pBku1GEq+i3g05ypZ+Y1pEQwCFQ7jmB1OyePZN9F IKQoX3gOrkXB/poEUaJyfQU4am9M5Ssm0Fk7K1koLPglM6ZjNLBLqO4Y9QGHN/YZsxlTyi4s+Rb 30JKy1gWHWw== X-Received: from dybmh46.prod.google.com ([2002:a05:7301:f2e:b0:30f:2f43:117b]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:2d4f:b0:37f:e1b6:4c7d with SMTP id 98e67ed59e1d1-39aedf1aec2mr9151888a91.6.1788364147549; Wed, 02 Sep 2026 08:49:07 -0700 (PDT) Date: Wed, 2 Sep 2026 08:48:55 -0700 In-Reply-To: <20260902154858.2078885-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260902154858.2078885-1-irogers@google.com> X-Mailer: git-send-email 2.55.0.966.g6673acef38-goog Message-ID: <20260902154858.2078885-4-irogers@google.com> Subject: [PATCH v3 3/6] perf tool: Remove unused includes in perf.c From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , Tianyou Li , Jiebin Sun , Dapeng Mi , Eric Biggers , Thomas Richter , Stephen Brennan , Swapnil Sapkal , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 --- 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" -- 2.55.0.966.g6673acef38-goog