drm/panel: panel-himax-hx83102: support for csot-pna957qt1-1 MIPI-DSI panel
[drm/drm-misc.git] / tools / testing / selftests / mm / mseal_helpers.h
blob0cfce31c76d2454c7cb111c4bcb9746af6a169fb
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define FAIL_TEST_IF_FALSE(test_passed) \
4 do { \
5 if (!(test_passed)) { \
6 ksft_test_result_fail("%s: line:%d\n", \
7 __func__, __LINE__); \
8 return; \
9 } \
10 } while (0)
12 #define SKIP_TEST_IF_FALSE(test_passed) \
13 do { \
14 if (!(test_passed)) { \
15 ksft_test_result_skip("%s: line:%d\n", \
16 __func__, __LINE__); \
17 return; \
18 } \
19 } while (0)
21 #define REPORT_TEST_PASS() ksft_test_result_pass("%s\n", __func__)
23 #ifndef PKEY_DISABLE_ACCESS
24 #define PKEY_DISABLE_ACCESS 0x1
25 #endif
27 #ifndef PKEY_DISABLE_WRITE
28 #define PKEY_DISABLE_WRITE 0x2
29 #endif
31 #ifndef PKEY_BITS_PER_PKEY
32 #define PKEY_BITS_PER_PKEY 2
33 #endif
35 #ifndef PKEY_MASK
36 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)
37 #endif
39 #ifndef u64
40 #define u64 unsigned long long
41 #endif