Skip to contentSkip to conversation

debugfs: introduce stub for debugfs_create_size_t() when DEBUG_FS=n

PATCH New Inaky Perez-Gonzalez 1 participant 1 message Jan 20, 2009 1 message not in the archive Driver core

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 debugfs: introduce stub for debugfs_create_size_t() when DEBUG_FS=n

Toralf Förster <[email protected]> reported a build failure in the WiMAX stack when CONFIG_DEBUG_FS=n

http://linuxwimax.org/pipermail/wimax/2009-January/000449.html

This is due to debugfs_create_size_t() missing an stub that returns -ENODEV when the DEBUGFS subsystem is not configured in (like the rest of the debugfs API).

This patch adds said stub.

---
 include/linux/debugfs.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
include/linux/debugfs.h +7 -0
index 23936b1..0f5c33b 100644
@@ -162,6 +162,13 @@ static inline struct dentry *debugfs_create_x32(const char *name, mode_t mode,
 	return ERR_PTR(-ENODEV);
 }
 
+struct dentry *debugfs_create_size_t(const char *name, mode_t mode,
+				     struct dentry *parent,
+				     size_t *value)
+{
+	return ERR_PTR(-ENODEV);
+}
+
 static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode,
 						 struct dentry *parent,
 						 u32 *value)
Signature · 1 line
1.5.6.5