Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

objtool: Drop ARRAY_SIZE() definition, tools/include/linux/kernel.h has it now

And with the goodies present in the kernel.h counterpart, i.e. checking
that the 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: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-roiwxwgwgld4kygn65if60wa@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+2 -4
+1 -2
tools/objtool/builtin-check.c
··· 36 36 #include "warn.h" 37 37 38 38 #include <linux/hashtable.h> 39 - 40 - #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 39 + #include <linux/kernel.h> 41 40 42 41 #define STATE_FP_SAVED 0x1 43 42 #define STATE_FP_SETUP 0x2
+1 -2
tools/objtool/objtool.c
··· 31 31 #include <stdlib.h> 32 32 #include <subcmd/exec-cmd.h> 33 33 #include <subcmd/pager.h> 34 + #include <linux/kernel.h> 34 35 35 36 #include "builtin.h" 36 - 37 - #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) 38 37 39 38 struct cmd_struct { 40 39 const char *name;