All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] debugfs: Add dummy implementation of few helpers
@ 2017-06-29  4:09 Viresh Kumar
  0 siblings, 0 replies; only message in thread
From: Viresh Kumar @ 2017-06-29  4:09 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Viresh Kumar, Vincent Guittot, rdunlap, linux-kernel

This adds (missing) dummy implementations of
debugfs_create_file_unsafe() and debugfs_create_ulong().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 include/linux/debugfs.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 9174b0d28582..222892287eb8 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)
-- 
2.13.0.71.gd7076ec9c9cb

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-29  4:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29  4:09 [PATCH] debugfs: Add dummy implementation of few helpers Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.