diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2017-06-29 09:39:02 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 16:25:11 +0200 |
commit | c2a737eb2ea5682ffe63bc08003965496d6dc088 (patch) | |
tree | 61244e42d58b0f10acacf20209253a17b31db1aa /include/linux/debugfs.h | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) | |
download | linux-c2a737eb2ea5682ffe63bc08003965496d6dc088.tar.gz linux-c2a737eb2ea5682ffe63bc08003965496d6dc088.tar.bz2 linux-c2a737eb2ea5682ffe63bc08003965496d6dc088.zip |
debugfs: Add dummy implementation of few helpers
This adds (missing) dummy implementations of
debugfs_create_file_unsafe() and debugfs_create_ulong().
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugfs.h')
-rw-r--r-- | include/linux/debugfs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index aa86e6d8c1aa..b93efc8feecd 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h @@ -196,6 +196,14 @@ static inline struct dentry *debugfs_create_file(const char *name, umode_t mode, return ERR_PTR(-ENODEV); } +static inline struct dentry *debugfs_create_file_unsafe(const char *name, + umode_t mode, struct dentry *parent, + void *data, + const struct file_operations *fops) +{ + return ERR_PTR(-ENODEV); +} + static inline struct dentry *debugfs_create_file_size(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops, @@ -289,6 +297,14 @@ static inline struct dentry *debugfs_create_u64(const char *name, umode_t mode, return ERR_PTR(-ENODEV); } +static inline struct dentry *debugfs_create_ulong(const char *name, + umode_t mode, + struct dentry *parent, + unsigned long *value) +{ + return ERR_PTR(-ENODEV); +} + static inline struct dentry *debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value) |