Skip to content

Commit 5a69d33

Browse files
committed
selftests/landlock: remove ARRAY_SIZE define from common.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 common.h and pickup the one defined in kselftest.h. Signed-off-by: Shuah Khan <[email protected]>
1 parent 8eda796 commit 5a69d33

File tree

1 file changed

+0
-4
lines changed
  • tools/testing/selftests/landlock

1 file changed

+0
-4
lines changed

tools/testing/selftests/landlock/common.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818
#include "../kselftest_harness.h"
1919

20-
#ifndef ARRAY_SIZE
21-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
22-
#endif
23-
2420
/*
2521
* TEST_F_FORK() is useful when a test drop privileges but the corresponding
2622
* FIXTURE_TEARDOWN() requires them (e.g. to remove files from a directory

0 commit comments

Comments
 (0)