Commit 72a571d1 authored by Shuah Khan's avatar Shuah Khan

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: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 2684618b
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment