selftests/cgroup: remove ARRAY_SIZE define from cgroup_util.h

ARRAY_SIZE is defined in several selftests. Remove definitions from
individual test files and include header file for the define instead.
ARRAY_SIZE define is added in a separate patch to prepare for this
change.

Remove ARRAY_SIZE from cgroup_util.h and pickup the one defined in
kselftest.h.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
Shuah Khan 2021-12-09 12:49:13 -07:00
parent 2684618b61
commit 72a571d1e2

View File

@ -2,9 +2,9 @@
#include <stdbool.h>
#include <stdlib.h>
#define PAGE_SIZE 4096
#include "../kselftest.h"
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#define PAGE_SIZE 4096
#define MB(x) (x << 20)