WIP FPC-III support
[linux/fpc-iii.git] / drivers / dma-buf / selftest.h
blob45793aff61425a4d5e9c9db7a734e464519ce04c
1 // SPDX-License-Identifier: MIT
3 /*
4 * Copyright © 2019 Intel Corporation
5 */
7 #ifndef __SELFTEST_H__
8 #define __SELFTEST_H__
10 #include <linux/compiler.h>
12 #define selftest(name, func) int func(void);
13 #include "selftests.h"
14 #undef selftest
16 struct subtest {
17 int (*func)(void *data);
18 const char *name;
21 int __subtests(const char *caller,
22 const struct subtest *st,
23 int count,
24 void *data);
25 #define subtests(T, data) \
26 __subtests(__func__, T, ARRAY_SIZE(T), data)
28 #define SUBTEST(x) { x, #x }
30 #endif /* __SELFTEST_H__ */