Linux-libre 5.7.3-gnu
[librecmc/linux-libre.git] / lib / kunit / debugfs.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2020, Oracle and/or its affiliates.
4  */
5
6 #ifndef _KUNIT_DEBUGFS_H
7 #define _KUNIT_DEBUGFS_H
8
9 #include <kunit/test.h>
10
11 #ifdef CONFIG_KUNIT_DEBUGFS
12
13 void kunit_debugfs_create_suite(struct kunit_suite *suite);
14 void kunit_debugfs_destroy_suite(struct kunit_suite *suite);
15 void kunit_debugfs_init(void);
16 void kunit_debugfs_cleanup(void);
17
18 #else
19
20 static inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { }
21
22 static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { }
23
24 static inline void kunit_debugfs_init(void) { }
25
26 static inline void kunit_debugfs_cleanup(void) { }
27
28 #endif /* CONFIG_KUNIT_DEBUGFS */
29
30 #endif /* _KUNIT_DEBUGFS_H */