diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-03 00:58:21 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 18:20:41 +0900 |
commit | a6dac4002b88f0ad242ac20d9de86d11321ecf84 (patch) | |
tree | d1d62659b6ce342d6722e1abbee6088419f2a893 /scripts/kconfig/preprocess.c | |
parent | 0a3128e75108cc23401aa5059b851ed047bfff0e (diff) |
kconfig: move ARRAY_SIZE to a header
To use ARRAY_SIZE from other files, move it to its own header,
just like include/linux/array_size.h.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/preprocess.c')
-rw-r--r-- | scripts/kconfig/preprocess.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/preprocess.c b/scripts/kconfig/preprocess.c index 69b806a6d8b7..f0a4a218c4a5 100644 --- a/scripts/kconfig/preprocess.c +++ b/scripts/kconfig/preprocess.c @@ -9,13 +9,12 @@ #include <stdlib.h> #include <string.h> +#include "array_size.h" #include "internal.h" #include "list.h" #include "lkc.h" #include "preprocess.h" -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) - static char *expand_string_with_args(const char *in, int argc, char *argv[]); static char *expand_string(const char *in); |