]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
perf tools: Remove needless sort.h include directives
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 30 Aug 2019 14:54:00 +0000 (11:54 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 1 Sep 2019 01:24:10 +0000 (22:24 -0300)
Now that sort.h isn't included by any other header, we can check where
it is really needed, i.e. we can remove it and be sure that it isn't
being obtained indirectly.

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-tom8k0lbsxd9joprr8zpu6w1@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
tools/perf/ui/browsers/scripts.c
tools/perf/util/hist.c
tools/perf/util/mem-events.c
tools/perf/util/session.c

index 0b7b12cfdd63dca7b885442f8599c641f55e1fe3..0f0d96262d147db7d524bfb7981b44abf5805728 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/rbtree.h>
 #include <subcmd/parse-options.h>
 #include "util/parse-events.h"
+#include "util/callchain.h"
 #include "util/cpumap.h"
 #include "util/sort.h"
 #include "util/string2.h"
index 77809c0fad02920ca581c6dc1dcfec648a317c07..bf1d9f9ec035258175b68f5015baa017f4e9c0d7 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 #include "../../builtin.h"
 #include "../../perf.h"
-#include "../../util/sort.h"
 #include "../../util/util.h"
 #include "../../util/hist.h"
 #include "../../util/debug.h"
index b526ef3ede98cc822fef507f18f6d48488cf0be2..0978dc4a33dbb3ef7ff7c9630ad77f368ac44b06 100644 (file)
@@ -20,6 +20,7 @@
 #include <math.h>
 #include <inttypes.h>
 #include <sys/param.h>
+#include <linux/rbtree.h>
 #include <linux/string.h>
 #include <linux/time64.h>
 #include <linux/zalloc.h>
index 42c3e5a229d24bae0719e4f2ad0e1e5e4b3770aa..3a8d38ce3b546b7e05bee76b87856c57930a4084 100644 (file)
@@ -11,7 +11,6 @@
 #include "mem-events.h"
 #include "debug.h"
 #include "symbol.h"
-#include "sort.h"
 
 unsigned int perf_mem_events__loads_ldlat = 30;
 
index f166da76acf1d0bfa175b64e41f1c0e36d6b4808..e5ac5f3c94d489161ea4f5aea2f2d4a1310e010b 100644 (file)
@@ -20,7 +20,6 @@
 #include "symbol.h"
 #include "session.h"
 #include "tool.h"
-#include "sort.h"
 #include "cpumap.h"
 #include "perf_regs.h"
 #include "asm/bug.h"