summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-17 11:29:26 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 13:01:43 -0300
commit8607c1ee734d12f62c6a46abef13a510e25a1839 (patch)
tree0e860bf17795004b3d609085a10f9beffd7dd595 /tools/perf/util
parentf6441aff8946f7fd6ab730d7eb9eba18a9ebeba4 (diff)
downloadlinux-8607c1ee734d12f62c6a46abef13a510e25a1839.tar.gz
linux-8607c1ee734d12f62c6a46abef13a510e25a1839.tar.bz2
linux-8607c1ee734d12f62c6a46abef13a510e25a1839.zip
tools include: Move ARRAY_SIZE() to linux/kernel.h
To match the kernel, then look for places redefining it to make it use this version, which checks that its parameter is an array at build time. 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-txlcf1im83bcbj6kh0wxmyy8@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index df13658377e4..3eccd6f21d17 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -1,8 +1,6 @@
#ifndef GIT_COMPAT_UTIL_H
#define GIT_COMPAT_UTIL_H
-#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
-
#ifdef __GNUC__
#define TYPEOF(x) (__typeof__(x))
#else