18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2020, Oracle and/or its affiliates. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _KUNIT_DEBUGFS_H 78c2ecf20Sopenharmony_ci#define _KUNIT_DEBUGFS_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <kunit/test.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifdef CONFIG_KUNIT_DEBUGFS 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_civoid kunit_debugfs_create_suite(struct kunit_suite *suite); 148c2ecf20Sopenharmony_civoid kunit_debugfs_destroy_suite(struct kunit_suite *suite); 158c2ecf20Sopenharmony_civoid kunit_debugfs_init(void); 168c2ecf20Sopenharmony_civoid kunit_debugfs_cleanup(void); 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#else 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cistatic inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { } 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_cistatic inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { } 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_cistatic inline void kunit_debugfs_init(void) { } 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_cistatic inline void kunit_debugfs_cleanup(void) { } 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /* CONFIG_KUNIT_DEBUGFS */ 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#endif /* _KUNIT_DEBUGFS_H */ 31