]> git.ipfire.org Git - thirdparty/linux.git/commit
perf util: Remove kernel version deadcode
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 16 Nov 2024 15:58:50 +0000 (15:58 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 16 Nov 2024 19:30:39 +0000 (16:30 -0300)
commit264708b8ac6cce132c61865bfe0463adeb80d7ef
tree0c032412bf471c83d8610448baf01d243a272426
parent0b687912c94181fdf530aa33036871cd8a26eb72
perf util: Remove kernel version deadcode

fetch_kernel_version() has been unused since Ian's 2023 commit
3d6dfae889174340 ("perf parse-events: Remove BPF event support")

Remove it, and it's helpers.

I noticed there are a bunch of kernel-version macros that are also
unused nearby.

Also remove them.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241116155850.113129-1-linux@treblig.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/util.c
tools/perf/util/util.h