Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf env: Remove env.h from other headers where just a fwd decl is needed

And fixup the fallout of c files not building due to now missing
headers.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-sw8k3kpla98pr3rqypbjk9hf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+9 -3
+3 -1
tools/perf/arch/common.h
··· 2 2 #ifndef ARCH_PERF_COMMON_H 3 3 #define ARCH_PERF_COMMON_H 4 4 5 - #include "../util/env.h" 5 + #include <stdbool.h> 6 + 7 + struct perf_env; 6 8 7 9 int perf_env__lookup_objdump(struct perf_env *env, const char **path); 8 10 bool perf_env__single_address_space(struct perf_env *env);
+2
tools/perf/tests/mem2node.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include <linux/compiler.h> 3 3 #include <linux/bitmap.h> 4 + #include <linux/kernel.h> 4 5 #include <linux/zalloc.h> 5 6 #include <perf/cpumap.h> 6 7 #include "cpumap.h" 7 8 #include "debug.h" 9 + #include "env.h" 8 10 #include "mem2node.h" 9 11 #include "tests.h" 10 12
-1
tools/perf/util/cputopo.h
··· 3 3 #define __PERF_CPUTOPO_H 4 4 5 5 #include <linux/types.h> 6 - #include "env.h" 7 6 8 7 struct cpu_topology { 9 8 u32 core_sib;
+2
tools/perf/util/mem2node.c
··· 1 1 #include <errno.h> 2 2 #include <inttypes.h> 3 3 #include <linux/bitmap.h> 4 + #include <linux/kernel.h> 4 5 #include <linux/zalloc.h> 5 6 #include "debug.h" 7 + #include "env.h" 6 8 #include "mem2node.h" 7 9 8 10 struct phys_entry {
+2 -1
tools/perf/util/mem2node.h
··· 2 2 #define __MEM2NODE_H 3 3 4 4 #include <linux/rbtree.h> 5 - #include "env.h" 5 + #include <linux/types.h> 6 6 7 + struct perf_env; 7 8 struct phys_entry; 8 9 9 10 struct mem2node {