.. | .. |
---|
32 | 32 | #ifndef _DRM_DEBUGFS_H_ |
---|
33 | 33 | #define _DRM_DEBUGFS_H_ |
---|
34 | 34 | |
---|
| 35 | +#include <linux/types.h> |
---|
| 36 | +#include <linux/seq_file.h> |
---|
35 | 37 | /** |
---|
36 | 38 | * struct drm_info_list - debugfs info list entry |
---|
37 | 39 | * |
---|
.. | .. |
---|
78 | 80 | }; |
---|
79 | 81 | |
---|
80 | 82 | #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); |
---|
84 | 86 | int drm_debugfs_remove_files(const struct drm_info_list *files, |
---|
85 | 87 | int count, struct drm_minor *minor); |
---|
86 | 88 | #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 | +{} |
---|
93 | 93 | |
---|
94 | 94 | static inline int drm_debugfs_remove_files(const struct drm_info_list *files, |
---|
95 | 95 | int count, struct drm_minor *minor) |
---|