diff options
author | 2024-07-30 09:09:23 +0200 | |
---|---|---|
committer | 2024-07-30 09:09:23 +0200 | |
commit | a1ff5a7d78a036d6c2178ee5acd6ba4946243800 (patch) | |
tree | 6652a7fba9fc417eaf327b7578447a4583ebd5da /scripts/include/array_size.h | |
parent | drm/client: Fix error code in drm_client_buffer_vmap_local() (diff) | |
parent | Linux 6.11-rc1 (diff) | |
download | wireguard-linux-a1ff5a7d78a036d6c2178ee5acd6ba4946243800.tar.xz wireguard-linux-a1ff5a7d78a036d6c2178ee5acd6ba4946243800.zip |
Merge drm/drm-fixes into drm-misc-fixes
Let's start the new drm-misc-fixes cycle by bringing in 6.11-rc1.
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'scripts/include/array_size.h')
-rw-r--r-- | scripts/include/array_size.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/include/array_size.h b/scripts/include/array_size.h new file mode 100644 index 000000000000..26ba78d867d1 --- /dev/null +++ b/scripts/include/array_size.h @@ -0,0 +1,11 @@ +/* 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 */ |