1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define FAIL_TEST_IF_FALSE(test_passed) \
5 if (!(test_passed)) { \
6 ksft_test_result_fail("%s: line:%d\n", \
12 #define SKIP_TEST_IF_FALSE(test_passed) \
14 if (!(test_passed)) { \
15 ksft_test_result_skip("%s: line:%d\n", \
16 __func__, __LINE__); \
21 #define REPORT_TEST_PASS() ksft_test_result_pass("%s\n", __func__)
23 #ifndef PKEY_DISABLE_ACCESS
24 #define PKEY_DISABLE_ACCESS 0x1
27 #ifndef PKEY_DISABLE_WRITE
28 #define PKEY_DISABLE_WRITE 0x2
31 #ifndef PKEY_BITS_PER_PKEY
32 #define PKEY_BITS_PER_PKEY 2
36 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)
40 #define u64 unsigned long long