diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2024-07-20 16:27:38 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-07-21 23:10:43 +0900 |
| commit | fbaf242c956aff6a07d9e97eaa3a0a48d947de33 (patch) | |
| tree | 9c2870d0112b16bde9cba2c2bc189b5b412dd45d /scripts/kconfig/array_size.h | |
| parent | Makefile: add comment to discourage tools/* addition for kernel builds (diff) | |
| download | linux-fbaf242c956aff6a07d9e97eaa3a0a48d947de33.tar.gz linux-fbaf242c956aff6a07d9e97eaa3a0a48d947de33.zip | |
kbuild: move some helper headers from scripts/kconfig/ to scripts/include/
Move array_size.h, hashtable.h, list.h, list_types.h from scripts/kconfig/
to scripts/include/.
These headers will be useful for other host programs.
Remove scripts/mod/list.h.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/array_size.h')
| -rw-r--r-- | scripts/kconfig/array_size.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/kconfig/array_size.h b/scripts/kconfig/array_size.h deleted file mode 100644 index 26ba78d867d1..000000000000 --- a/scripts/kconfig/array_size.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef ARRAY_SIZE_H -#define ARRAY_SIZE_H - -/** - * ARRAY_SIZE - get the number of elements in array @arr - * @arr: array to be sized - */ -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) - -#endif /* ARRAY_SIZE_H */ |
