diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-17 11:29:26 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-05 10:28:57 +0200 |
commit | 110cf308d24a6b7ec27852a4d0933bfe00f551c9 (patch) | |
tree | c5dd3cdd0d00566e0ff6600990bb8c7b77c1923b /tools/perf/util | |
parent | d45e1f06a18644d18c0280c0a1091d22f7fa8b83 (diff) | |
download | linux-stable-110cf308d24a6b7ec27852a4d0933bfe00f551c9.tar.gz linux-stable-110cf308d24a6b7ec27852a4d0933bfe00f551c9.tar.bz2 linux-stable-110cf308d24a6b7ec27852a4d0933bfe00f551c9.zip |
tools include: Move ARRAY_SIZE() to linux/kernel.h
commit 8607c1ee734d12f62c6a46abef13a510e25a1839 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/util.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 43899e0d6fa1..e72d370889f8 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -23,8 +23,6 @@ #endif #endif -#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) - #ifdef __GNUC__ #define TYPEOF(x) (__typeof__(x)) #else |