perf auxtrace: Remove errno.h from auxtrace.h and fix transitive dependencies

errno.h isn't used in auxtrace.h so remove it and fix build failures
caused by transitive dependencies through auxtrace.h on errno.h.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
Ian Rogers
2025-11-13 23:03:11 -08:00
committed by Namhyung Kim
parent 754187ad73
commit ca016b6527
34 changed files with 35 additions and 4 deletions
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/compiler.h>
#include <linux/zalloc.h>
#include <errno.h>
#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>
+1
View File
@@ -5,6 +5,7 @@
*/
#include <dirent.h>
#include <errno.h>
#include <stdbool.h>
#include <linux/coresight-pmu.h>
#include <linux/zalloc.h>
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/compiler.h>
#include <errno.h>
#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>
+1
View File
@@ -10,6 +10,7 @@
#include <linux/log2.h>
#include <linux/string.h>
#include <linux/zalloc.h>
#include <errno.h>
#include <time.h>
#include "../../../util/cpumap.h"
+1
View File
@@ -9,6 +9,7 @@
#include <linux/bitops.h>
#include <linux/log2.h>
#include <linux/zalloc.h>
#include <errno.h>
#include <time.h>
#include <internal/lib.h> // page_size
+1 -1
View File
@@ -2,7 +2,7 @@
/*
* VPA support
*/
#include <errno.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
+1
View File
@@ -1,3 +1,4 @@
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <linux/kernel.h>
+1
View File
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include "arch-tests.h"
#include "../util/topdown.h"
#include "debug.h"
+1
View File
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include "util/evlist.h"
#include "util/pmu.h"
#include "util/pmus.h"
+1
View File
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+1
View File
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/prctl.h>
+1
View File
@@ -4,6 +4,7 @@
*
* Copyright 2023 Google LLC.
*/
#include <errno.h>
#include <stdio.h>
#include "bench.h"
#include "util/debug.h"
+1
View File
@@ -6,6 +6,7 @@
*
* Copyright 2019 Google LLC.
*/
#include <errno.h>
#include <stdio.h>
#include "bench.h"
#include "../util/debug.h"
+1
View File
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
+1
View File
@@ -4,6 +4,7 @@
#include "hwmon_pmu.h"
#include "parse-events.h"
#include "tests.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <linux/compiler.h>
+1
View File
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/compiler.h>
#include <errno.h>
#include <string.h>
#include <perf/cpumap.h>
#include <perf/evlist.h>
+1
View File
@@ -4,6 +4,7 @@
*
* Copyright 2020 Google LLC.
*/
#include <errno.h>
#include "tests.h"
#include "util/debug.h"
#include "util/evlist.h"
+1
View File
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
+1 -1
View File
@@ -4,7 +4,7 @@
*
* Written by Namhyung Kim <namhyung@kernel.org>
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
-1
View File
@@ -7,7 +7,6 @@
#ifndef __PERF_AUXTRACE_H
#define __PERF_AUXTRACE_H
#include <errno.h>
#include <stdio.h> // FILE
#include <linux/perf_event.h>
#include <linux/types.h>

Some files were not shown because too many files have changed in this diff Show More