diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-19 19:15:21 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-20 14:45:32 +0100 |
commit | 71352d2db8822a98c79fa91125dae074d29965ed (patch) | |
tree | 61785c52d2286658d29f6d669406660fa5328f96 | |
parent | d2f0dc48706ba5d89dad5ed9eab4f7d21591497a (diff) |
tools/testing/selftests/cgroup/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | tools/testing/selftests/cgroup/cgroup_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/cgroup/cgroup_util.h b/tools/testing/selftests/cgroup/cgroup_util.h index 82e59cdf16e7..e11f53547533 100644 --- a/tools/testing/selftests/cgroup/cgroup_util.h +++ b/tools/testing/selftests/cgroup/cgroup_util.h @@ -1,10 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0 */ + + +#include <linux/array_size.h> #include <stdbool.h> #include <stdlib.h> -#define PAGE_SIZE 4096 -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#define PAGE_SIZE 4096 #define MB(x) (x << 20) |