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

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

perf tools: Add include <linux/kernel.h> where ARRAY_SIZE() is used

To pave the way for further cleanups where linux/kernel.h may stop being
included in some header.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-qqxan6tfsl6qx3l0v3nwgjvk@git.kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8607c1ee
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
#include <sys/wait.h>
#include <sys/prctl.h>
#include <sys/types.h>
#include <linux/kernel.h>
#include <linux/time64.h>

#include <numa.h>
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
#include <subcmd/run-command.h>
#include <subcmd/help.h>
#include "util/debug.h"
#include <linux/kernel.h>

static struct man_viewer_list {
	struct man_viewer_list *next;
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@

#include "util/debug.h"

#include <linux/kernel.h>
#include <linux/rbtree.h>
#include <linux/string.h>
#include <locale.h>
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#include <sys/timerfd.h>
#endif

#include <linux/kernel.h>
#include <linux/time64.h>
#include <termios.h>
#include <semaphore.h>
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@

#include <linux/list.h>
#include <linux/hash.h>
#include <linux/kernel.h>

static struct perf_session *session;

Loading