hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/drm/drm_debugfs.h
....@@ -32,6 +32,8 @@
3232 #ifndef _DRM_DEBUGFS_H_
3333 #define _DRM_DEBUGFS_H_
3434
35
+#include <linux/types.h>
36
+#include <linux/seq_file.h>
3537 /**
3638 * struct drm_info_list - debugfs info list entry
3739 *
....@@ -78,18 +80,16 @@
7880 };
7981
8082 #if defined(CONFIG_DEBUG_FS)
81
-int drm_debugfs_create_files(const struct drm_info_list *files,
82
- int count, struct dentry *root,
83
- struct drm_minor *minor);
83
+void drm_debugfs_create_files(const struct drm_info_list *files,
84
+ int count, struct dentry *root,
85
+ struct drm_minor *minor);
8486 int drm_debugfs_remove_files(const struct drm_info_list *files,
8587 int count, struct drm_minor *minor);
8688 #else
87
-static inline int drm_debugfs_create_files(const struct drm_info_list *files,
88
- int count, struct dentry *root,
89
- struct drm_minor *minor)
90
-{
91
- return 0;
92
-}
89
+static inline void drm_debugfs_create_files(const struct drm_info_list *files,
90
+ int count, struct dentry *root,
91
+ struct drm_minor *minor)
92
+{}
9393
9494 static inline int drm_debugfs_remove_files(const struct drm_info_list *files,
9595 int count, struct drm_minor *minor)