diff options
Diffstat (limited to 'include/linux/debugfs.h')
| -rw-r--r-- | include/linux/debugfs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 23936b16426b..eb5c2ba2f81a 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -71,6 +71,9 @@ struct dentry *debugfs_create_bool(const char *name, mode_t mode, | |||
| 71 | struct dentry *debugfs_create_blob(const char *name, mode_t mode, | 71 | struct dentry *debugfs_create_blob(const char *name, mode_t mode, |
| 72 | struct dentry *parent, | 72 | struct dentry *parent, |
| 73 | struct debugfs_blob_wrapper *blob); | 73 | struct debugfs_blob_wrapper *blob); |
| 74 | |||
| 75 | bool debugfs_initialized(void); | ||
| 76 | |||
| 74 | #else | 77 | #else |
| 75 | 78 | ||
| 76 | #include <linux/err.h> | 79 | #include <linux/err.h> |
| @@ -162,6 +165,13 @@ static inline struct dentry *debugfs_create_x32(const char *name, mode_t mode, | |||
| 162 | return ERR_PTR(-ENODEV); | 165 | return ERR_PTR(-ENODEV); |
| 163 | } | 166 | } |
| 164 | 167 | ||
| 168 | static inline struct dentry *debugfs_create_size_t(const char *name, mode_t mode, | ||
| 169 | struct dentry *parent, | ||
| 170 | size_t *value) | ||
| 171 | { | ||
| 172 | return ERR_PTR(-ENODEV); | ||
| 173 | } | ||
| 174 | |||
| 165 | static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode, | 175 | static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode, |
| 166 | struct dentry *parent, | 176 | struct dentry *parent, |
| 167 | u32 *value) | 177 | u32 *value) |
| @@ -176,6 +186,11 @@ static inline struct dentry *debugfs_create_blob(const char *name, mode_t mode, | |||
| 176 | return ERR_PTR(-ENODEV); | 186 | return ERR_PTR(-ENODEV); |
| 177 | } | 187 | } |
| 178 | 188 | ||
| 189 | static inline bool debugfs_initialized(void) | ||
| 190 | { | ||
| 191 | return false; | ||
| 192 | } | ||
| 193 | |||
| 179 | #endif | 194 | #endif |
| 180 | 195 | ||
| 181 | #endif | 196 | #endif |
