Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6b5574b authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8520a98d
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -2,7 +2,9 @@
#ifndef ARCH_PERF_COMMON_H
#ifndef ARCH_PERF_COMMON_H
#define ARCH_PERF_COMMON_H
#define ARCH_PERF_COMMON_H


#include "../util/env.h"
#include <stdbool.h>

struct perf_env;


int perf_env__lookup_objdump(struct perf_env *env, const char **path);
int perf_env__lookup_objdump(struct perf_env *env, const char **path);
bool perf_env__single_address_space(struct perf_env *env);
bool perf_env__single_address_space(struct perf_env *env);
+2 −0
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
// SPDX-License-Identifier: GPL-2.0
#include <linux/compiler.h>
#include <linux/compiler.h>
#include <linux/bitmap.h>
#include <linux/bitmap.h>
#include <linux/kernel.h>
#include <linux/zalloc.h>
#include <linux/zalloc.h>
#include <perf/cpumap.h>
#include <perf/cpumap.h>
#include "cpumap.h"
#include "cpumap.h"
#include "debug.h"
#include "debug.h"
#include "env.h"
#include "mem2node.h"
#include "mem2node.h"
#include "tests.h"
#include "tests.h"


+0 −1
Original line number Original line Diff line number Diff line
@@ -3,7 +3,6 @@
#define __PERF_CPUTOPO_H
#define __PERF_CPUTOPO_H


#include <linux/types.h>
#include <linux/types.h>
#include "env.h"


struct cpu_topology {
struct cpu_topology {
	u32	  core_sib;
	u32	  core_sib;
+2 −0
Original line number Original line Diff line number Diff line
#include <errno.h>
#include <errno.h>
#include <inttypes.h>
#include <inttypes.h>
#include <linux/bitmap.h>
#include <linux/bitmap.h>
#include <linux/kernel.h>
#include <linux/zalloc.h>
#include <linux/zalloc.h>
#include "debug.h"
#include "debug.h"
#include "env.h"
#include "mem2node.h"
#include "mem2node.h"


struct phys_entry {
struct phys_entry {
+2 −1
Original line number Original line Diff line number Diff line
@@ -2,8 +2,9 @@
#define __MEM2NODE_H
#define __MEM2NODE_H


#include <linux/rbtree.h>
#include <linux/rbtree.h>
#include "env.h"
#include <linux/types.h>


struct perf_env;
struct phys_entry;
struct phys_entry;


struct mem2node {
struct mem2node {