aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/debugfs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org.(none)>2005-04-19 16:14:28 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org.(none)>2005-04-19 16:14:28 -0400
commit9f6c6fc505560465be0964eb4da1b6ca97bd3951 (patch)
tree9660991b5e417ad7bb74e105c037ff358f60ba27 /include/linux/debugfs.h
parentc3c661932cd53582c5b03692b99649300977248a (diff)
parentf0e035f4b6940aae6836500b642029c289ed4535 (diff)
Merge with kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/
for 13 driver core, sysfs, and debugfs fixes.
Diffstat (limited to 'include/linux/debugfs.h')
-rw-r--r--include/linux/debugfs.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index f7a7b86f6eef..a5fa6a6eede8 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -17,6 +17,10 @@
17 17
18#include <linux/fs.h> 18#include <linux/fs.h>
19 19
20#include <linux/types.h>
21
22struct file_operations;
23
20#if defined(CONFIG_DEBUG_FS) 24#if defined(CONFIG_DEBUG_FS)
21struct dentry *debugfs_create_file(const char *name, mode_t mode, 25struct dentry *debugfs_create_file(const char *name, mode_t mode,
22 struct dentry *parent, void *data, 26 struct dentry *parent, void *data,
@@ -36,6 +40,9 @@ struct dentry *debugfs_create_bool(const char *name, mode_t mode,
36 struct dentry *parent, u32 *value); 40 struct dentry *parent, u32 *value);
37 41
38#else 42#else
43
44#include <linux/err.h>
45
39/* 46/*
40 * We do not return NULL from these functions if CONFIG_DEBUG_FS is not enabled 47 * We do not return NULL from these functions if CONFIG_DEBUG_FS is not enabled
41 * so users have a chance to detect if there was a real error or not. We don't 48 * so users have a chance to detect if there was a real error or not. We don't
@@ -68,21 +75,21 @@ static inline struct dentry *debugfs_create_u8(const char *name, mode_t mode,
68 75
69static inline struct dentry *debugfs_create_u16(const char *name, mode_t mode, 76static inline struct dentry *debugfs_create_u16(const char *name, mode_t mode,
70 struct dentry *parent, 77 struct dentry *parent,
71 u8 *value) 78 u16 *value)
72{ 79{
73 return ERR_PTR(-ENODEV); 80 return ERR_PTR(-ENODEV);
74} 81}
75 82
76static inline struct dentry *debugfs_create_u32(const char *name, mode_t mode, 83static inline struct dentry *debugfs_create_u32(const char *name, mode_t mode,
77 struct dentry *parent, 84 struct dentry *parent,
78 u8 *value) 85 u32 *value)
79{ 86{
80 return ERR_PTR(-ENODEV); 87 return ERR_PTR(-ENODEV);
81} 88}
82 89
83static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode, 90static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode,
84 struct dentry *parent, 91 struct dentry *parent,
85 u8 *value) 92 u32 *value)
86{ 93{
87 return ERR_PTR(-ENODEV); 94 return ERR_PTR(-ENODEV);
88} 95}