]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf auxtrace: Remove errno.h from auxtrace.h and fix transitive dependencies
authorIan Rogers <irogers@google.com>
Mon, 10 Nov 2025 01:31:52 +0000 (17:31 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 14 Nov 2025 07:03:11 +0000 (23:03 -0800)
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>
34 files changed:
tools/perf/arch/arm/annotate/instructions.c
tools/perf/arch/arm/util/auxtrace.c
tools/perf/arch/arm64/annotate/instructions.c
tools/perf/arch/arm64/util/arm-spe.c
tools/perf/arch/arm64/util/hisi-ptt.c
tools/perf/arch/powerpc/util/auxtrace.c
tools/perf/arch/s390/util/auxtrace.c
tools/perf/arch/x86/tests/topdown.c
tools/perf/arch/x86/util/topdown.c
tools/perf/bench/evlist-open-close.c
tools/perf/bench/futex.c
tools/perf/bench/pmu-scan.c
tools/perf/bench/synthesize.c
tools/perf/builtin-mem.c
tools/perf/tests/hwmon_pmu.c
tools/perf/tests/parse-metric.c
tools/perf/tests/pfm.c
tools/perf/ui/hist.c
tools/perf/util/annotate-data.c
tools/perf/util/auxtrace.h
tools/perf/util/bpf-filter.h
tools/perf/util/bpf-trace-summary.c
tools/perf/util/bpf_counter_cgroup.c
tools/perf/util/bpf_ftrace.c
tools/perf/util/bpf_map.c
tools/perf/util/cgroup.c
tools/perf/util/drm_pmu.c
tools/perf/util/evswitch.c
tools/perf/util/intel-tpebs.c
tools/perf/util/kvm-stat.h
tools/perf/util/mmap.c
tools/perf/util/pfm.c
tools/perf/util/powerpc-vpadtl.c
tools/perf/util/stat-shadow.c

index cf91a43362b0e3f17dac175c7e415e49208ff316..5e667b0f55126b6f6570317cbe0f1a1acdeb67e8 100644 (file)
@@ -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>
index 3b8eca0ffb17120ea350bba65b26941cc7e3d3fd..eb6404267f1715a9ff57cd48e0e34783a27b54b0 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <dirent.h>
+#include <errno.h>
 #include <stdbool.h>
 #include <linux/coresight-pmu.h>
 #include <linux/zalloc.h>
index d465d093e7eb57486cebb174edb22ccdac671abd..16cb62d40bd96824642722f9a118868c4fcd040a 100644 (file)
@@ -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>
index cac43cde7dbee94884938482d03989a2c69cb0b1..d5ec1408d0aec7e0d39a2cae7ad73694950ab67b 100644 (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"
index eac9739c87e6c413fc77572fcab1eca18fad3b7a..fe457fd58c9e80d8ebd251e17e1da4794279ebe8 100644 (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
index 62c6f67f1bbe665c5f5a85103b30e269ce6239d6..292ea335e4fff6b9dce1315665ee39d1a393ded4 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * VPA support
  */
-
+#include <errno.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/string.h>
index 5068baa3e092b915a6d6c242bac39d8f0356176a..1a36761450661f0717d956094d08580771fd4661 100644 (file)
@@ -1,3 +1,4 @@
+#include <errno.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include <linux/kernel.h>
index 1eba3b4594ef2ba9a881d5ccd44ebe8a1bd3eaf5..3ee4e5e71be3b71e4b6ddfe1c32d17eccba2fe60 100644 (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"
index 0d01b662627a3b8bdb7a68f5257733d0cc46ebe2..bafd285119d7ae088e9b3eaaaca36ac361dfe0e5 100644 (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"
index bfaf50e4e51933a7167f3ea7cc599411e6b592f5..faf9c34b4a5dc01905573144c17673580aefaf2e 100644 (file)
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <errno.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
index 1481196a22f0c089901c76560618ca742c70d992..1968c9d00b5bb0a6461b79484e2a985ddb12b4ee 100644 (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>
index 9e4d36486f6255ce739e0fe53446e48f27d365f4..14a464ad8cea8b3bda867947718d31ec1e2fd4d8 100644 (file)
@@ -4,6 +4,7 @@
  *
  * Copyright 2023 Google LLC.
  */
+#include <errno.h>
 #include <stdio.h>
 #include "bench.h"
 #include "util/debug.h"
index b3d493697675cbc19083064e6f6fc0c5f7181d59..265d49a913d94fecdef39076abd33fc3f6079cea 100644 (file)
@@ -6,6 +6,7 @@
  *
  * Copyright 2019 Google LLC.
  */
+#include <errno.h>
 #include <stdio.h>
 #include "bench.h"
 #include "../util/debug.h"
index c6496adff3fea661c92a7cbc6337680f49ef63c6..d43500b92a7b9f3c76955c3b6779de1100cd6558 100644 (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>
index 151f02701c8cc3358a8bcbd2e2375fe75f707e14..4aa4aac94f09c7b6665c4c295cda7ea14214624b 100644 (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>
index 66a5275917e22907b5154da55ab6224753a1c969..9b1df1eb455a7d3a8fd1305af852969f4ff1f305 100644 (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>
index 2e38dfa34b6ce1dc509382c37e56a20c43208685..fca4a86452df63227ebd99ec990eee6a7c4c03d5 100644 (file)
@@ -4,6 +4,7 @@
  *
  * Copyright 2020 Google LLC.
  */
+#include <errno.h>
 #include "tests.h"
 #include "util/debug.h"
 #include "util/evlist.h"
index b085eb0de84997f46fedf3907cdc287b99a37b4c..e58327595d37d6365a4f6b21bf6bea0f1c46cb17 100644 (file)
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <errno.h>
 #include <inttypes.h>
 #include <math.h>
 #include <stdlib.h>
index e183c6104d5940d58321a0d8aa5e5a02d940e04a..07cf9c334be06021743bd6336b7f38cd2e997b48 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Written by Namhyung Kim <namhyung@kernel.org>
  */
-
+#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <inttypes.h>
index 59cf72b935ff3774e8d76d9afb25af8711148513..eee2c11f766683488af09a8c1de2401cb28adc09 100644 (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>
index 122477f2de44bb60515b9481d2aa03bf62ebf33f..818c554b91b289f8e25307ca48ce9c66895aa82b 100644 (file)
@@ -36,6 +36,8 @@ int perf_bpf_filter__unpin(void);
 
 #else /* !HAVE_BPF_SKEL */
 
+#include <errno.h>
+
 static inline int perf_bpf_filter__parse(struct list_head *expr_head __maybe_unused,
                                         const char *str __maybe_unused)
 {
index 8dfe7e678941d0d8d7e5f96fd0dac8459bb021ac..cf6e1e4402d524f113dc7a798e1045b1e85c000d 100644 (file)
@@ -1,4 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+#include <errno.h>
 #include <inttypes.h>
 #include <math.h>
 #include <stdio.h>
index 68bd994c88807ba2922c5b491de42c021ee9d831..17d7196c658920bd2074ee05668b73ed64bef481 100644 (file)
@@ -4,6 +4,7 @@
 /* Copyright (c) 2021 Google */
 
 #include <assert.h>
+#include <errno.h>
 #include <limits.h>
 #include <unistd.h>
 #include <sys/file.h>
index e61a3b20be0a0bb18ccac29e4ff7152c082236ed..c456d24efa308c4ecb1f405b54193ea12c114b11 100644 (file)
@@ -1,6 +1,7 @@
-#include <stdio.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <stdint.h>
+#include <stdio.h>
 #include <stdlib.h>
 
 #include <bpf/bpf.h>
index 578f27d2d6b46106e56d1956bbea4422b7f26bec..442f91b4e8e154e540e10fb8bf706be5e9196da9 100644 (file)
@@ -5,6 +5,7 @@
 #include <bpf/libbpf.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
+#include <errno.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include <unistd.h>
index 25e2769b5e74feeeffa7a020bb242267243695a0..040eb75f0804863df9ae0126329a31ee13b64cc1 100644 (file)
@@ -10,6 +10,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/statfs.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <string.h>
index 98d4d2b556d4ed0d8cc871d9a0b5a0ca948313bb..b3052266d59937aa4b6b5c58954c2220dd86c85b 100644 (file)
@@ -10,6 +10,7 @@
 #include <api/io.h>
 #include <ctype.h>
 #include <dirent.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <linux/unistd.h>
index 40cb56a9347dad4ed0354b5b973f6ea523e6fc6b..d4c06a3f825a88a33e85dde8bf45556fe1bfd884 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 // Copyright (C) 2019, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
 
+#include <errno.h>
 #include "evswitch.h"
 #include "evlist.h"
 
index 21359155f2a0bf5c0f1b6a1bff4d805f9f95c227..3c958d738ca6ca5134c71cc9e43c434f4c341bdb 100644 (file)
@@ -25,6 +25,7 @@
 #include "stat.h"
 #include <sys/stat.h>
 #include <sys/file.h>
+#include <errno.h>
 #include <poll.h>
 #include <math.h>
 
index 53db3d56108bd6e89faa526a8790f7bf9f349060..a356b839c2ee0fd176e41b05951b91dbc0c516bb 100644 (file)
@@ -10,6 +10,7 @@
 #include "symbol.h"
 #include "record.h"
 
+#include <errno.h>
 #include <stdlib.h>
 #include <linux/zalloc.h>
 
index a34726219af3da0b76465a5d071eaf180c65ca58..b69f926d314b148bb496db58682f89d21751c5a3 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <sys/mman.h>
+#include <errno.h>
 #include <inttypes.h>
 #include <asm/bug.h>
 #include <linux/zalloc.h>
index e5b3a2a5ddef5b6ded7daf91d6597b74192469b0..d9043f4afbe7b16e3c1f4c3f84d88940f6d43642 100644 (file)
@@ -15,6 +15,7 @@
 #include "util/strbuf.h"
 #include "util/thread_map.h"
 
+#include <errno.h>
 #include <string.h>
 #include <linux/kernel.h>
 #include <perfmon/pfmlib_perf_event.h>
index bfa4156d7a9782caa4112f5b949cdc50cb291c89..d1c3396f182fdd838557ee470cc8bf9d1e7e00e1 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <linux/string.h>
+#include <errno.h>
 #include <inttypes.h>
 #include "color.h"
 #include "evlist.h"
index b3b482e1808f1b9ff99673d8f97170bef42caa35..15e83d74eb0e5d6110bd2ae5544e01ff12db65ec 100644 (file)
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <errno.h>
 #include <math.h>
 #include <stdio.h>
 #include "evsel.h"