Skip to content

Commit 72a571d

Browse files
committed
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 <[email protected]>
1 parent 2684618 commit 72a571d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/cgroup/cgroup_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include <stdbool.h>
33
#include <stdlib.h>
44

5-
#define PAGE_SIZE 4096
5+
#include "../kselftest.h"
66

7-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
7+
#define PAGE_SIZE 4096
88

99
#define MB(x) (x << 20)
1010

0 commit comments

Comments
 (0)