drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / drivers / nvme / target / debugfs.h
blobcfb8bbf6a297a0c36a6f8a97c5812490066e6cb8
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * DebugFS interface for the NVMe target.
4 * Copyright (c) 2022-2024 Shadow
5 * Copyright (c) 2024 SUSE LLC
6 */
7 #ifndef NVMET_DEBUGFS_H
8 #define NVMET_DEBUGFS_H
10 #include <linux/types.h>
12 #ifdef CONFIG_NVME_TARGET_DEBUGFS
13 int nvmet_debugfs_subsys_setup(struct nvmet_subsys *subsys);
14 void nvmet_debugfs_subsys_free(struct nvmet_subsys *subsys);
15 int nvmet_debugfs_ctrl_setup(struct nvmet_ctrl *ctrl);
16 void nvmet_debugfs_ctrl_free(struct nvmet_ctrl *ctrl);
18 int __init nvmet_init_debugfs(void);
19 void nvmet_exit_debugfs(void);
20 #else
21 static inline int nvmet_debugfs_subsys_setup(struct nvmet_subsys *subsys)
23 return 0;
25 static inline void nvmet_debugfs_subsys_free(struct nvmet_subsys *subsys){}
27 static inline int nvmet_debugfs_ctrl_setup(struct nvmet_ctrl *ctrl)
29 return 0;
31 static inline void nvmet_debugfs_ctrl_free(struct nvmet_ctrl *ctrl) {}
33 static inline int __init nvmet_init_debugfs(void)
35 return 0;
38 static inline void nvmet_exit_debugfs(void) {}
40 #endif
42 #endif /* NVMET_DEBUGFS_H */