aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/debugfs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-24 04:33:43 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:54:56 -0500
commitf4ae40a6a50a98ac23d4b285f739455e926a473e (patch)
treec84d7393700bd85e5285a194f8c22d4d00e36b28 /include/linux/debugfs.h
parent48176a973d65572e61d0ce95495e5072887e6fb6 (diff)
switch debugfs to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/debugfs.h')
-rw-r--r--include/linux/debugfs.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index e7d9b20ddc5b..d1ac841e8dc7 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -34,7 +34,7 @@ extern struct dentry *arch_debugfs_dir;
34extern const struct file_operations debugfs_file_operations; 34extern const struct file_operations debugfs_file_operations;
35extern const struct inode_operations debugfs_link_operations; 35extern const struct inode_operations debugfs_link_operations;
36 36
37struct dentry *debugfs_create_file(const char *name, mode_t mode, 37struct dentry *debugfs_create_file(const char *name, umode_t mode,
38 struct dentry *parent, void *data, 38 struct dentry *parent, void *data,
39 const struct file_operations *fops); 39 const struct file_operations *fops);
40 40
@@ -49,28 +49,28 @@ void debugfs_remove_recursive(struct dentry *dentry);
49struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, 49struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry,
50 struct dentry *new_dir, const char *new_name); 50 struct dentry *new_dir, const char *new_name);
51 51
52struct dentry *debugfs_create_u8(const char *name, mode_t mode, 52struct dentry *debugfs_create_u8(const char *name, umode_t mode,
53 struct dentry *parent, u8 *value); 53 struct dentry *parent, u8 *value);
54struct dentry *debugfs_create_u16(const char *name, mode_t mode, 54struct dentry *debugfs_create_u16(const char *name, umode_t mode,
55 struct dentry *parent, u16 *value); 55 struct dentry *parent, u16 *value);
56struct dentry *debugfs_create_u32(const char *name, mode_t mode, 56struct dentry *debugfs_create_u32(const char *name, umode_t mode,
57 struct dentry *parent, u32 *value); 57 struct dentry *parent, u32 *value);
58struct dentry *debugfs_create_u64(const char *name, mode_t mode, 58struct dentry *debugfs_create_u64(const char *name, umode_t mode,
59 struct dentry *parent, u64 *value); 59 struct dentry *parent, u64 *value);
60struct dentry *debugfs_create_x8(const char *name, mode_t mode, 60struct dentry *debugfs_create_x8(const char *name, umode_t mode,
61 struct dentry *parent, u8 *value); 61 struct dentry *parent, u8 *value);
62struct dentry *debugfs_create_x16(const char *name, mode_t mode, 62struct dentry *debugfs_create_x16(const char *name, umode_t mode,
63 struct dentry *parent, u16 *value); 63 struct dentry *parent, u16 *value);
64struct dentry *debugfs_create_x32(const char *name, mode_t mode, 64struct dentry *debugfs_create_x32(const char *name, umode_t mode,
65 struct dentry *parent, u32 *value); 65 struct dentry *parent, u32 *value);
66struct dentry *debugfs_create_x64(const char *name, mode_t mode, 66struct dentry *debugfs_create_x64(const char *name, umode_t mode,
67 struct dentry *parent, u64 *value); 67 struct dentry *parent, u64 *value);
68struct dentry *debugfs_create_size_t(const char *name, mode_t mode, 68struct dentry *debugfs_create_size_t(const char *name, umode_t mode,
69 struct dentry *parent, size_t *value); 69 struct dentry *parent, size_t *value);
70struct dentry *debugfs_create_bool(const char *name, mode_t mode, 70struct dentry *debugfs_create_bool(const char *name, umode_t mode,
71 struct dentry *parent, u32 *value); 71 struct dentry *parent, u32 *value);
72 72
73struct dentry *debugfs_create_blob(const char *name, mode_t mode, 73struct dentry *debugfs_create_blob(const char *name, umode_t mode,
74 struct dentry *parent, 74 struct dentry *parent,
75 struct debugfs_blob_wrapper *blob); 75 struct debugfs_blob_wrapper *blob);
76 76
@@ -86,7 +86,7 @@ bool debugfs_initialized(void);
86 * want to duplicate the design decision mistakes of procfs and devfs again. 86 * want to duplicate the design decision mistakes of procfs and devfs again.
87 */ 87 */
88 88
89static inline struct dentry *debugfs_create_file(const char *name, mode_t mode, 89static inline struct dentry *debugfs_create_file(const char *name, umode_t mode,
90 struct dentry *parent, void *data, 90 struct dentry *parent, void *data,
91 const struct file_operations *fops) 91 const struct file_operations *fops)
92{ 92{
@@ -118,70 +118,70 @@ static inline struct dentry *debugfs_rename(struct dentry *old_dir, struct dentr
118 return ERR_PTR(-ENODEV); 118 return ERR_PTR(-ENODEV);
119} 119}
120 120
121static inline struct dentry *debugfs_create_u8(const char *name, mode_t mode, 121static inline struct dentry *debugfs_create_u8(const char *name, umode_t mode,
122 struct dentry *parent, 122 struct dentry *parent,
123 u8 *value) 123 u8 *value)
124{ 124{
125 return ERR_PTR(-ENODEV); 125 return ERR_PTR(-ENODEV);
126} 126}
127 127
128static inline struct dentry *debugfs_create_u16(const char *name, mode_t mode, 128static inline struct dentry *debugfs_create_u16(const char *name, umode_t mode,
129 struct dentry *parent, 129 struct dentry *parent,
130 u16 *value) 130 u16 *value)
131{ 131{
132 return ERR_PTR(-ENODEV); 132 return ERR_PTR(-ENODEV);
133} 133}
134 134
135static inline struct dentry *debugfs_create_u32(const char *name, mode_t mode, 135static inline struct dentry *debugfs_create_u32(const char *name, umode_t mode,
136 struct dentry *parent, 136 struct dentry *parent,
137 u32 *value) 137 u32 *value)
138{ 138{
139 return ERR_PTR(-ENODEV); 139 return ERR_PTR(-ENODEV);
140} 140}
141 141
142static inline struct dentry *debugfs_create_u64(const char *name, mode_t mode, 142static inline struct dentry *debugfs_create_u64(const char *name, umode_t mode,
143 struct dentry *parent, 143 struct dentry *parent,
144 u64 *value) 144 u64 *value)
145{ 145{
146 return ERR_PTR(-ENODEV); 146 return ERR_PTR(-ENODEV);
147} 147}
148 148
149static inline struct dentry *debugfs_create_x8(const char *name, mode_t mode, 149static inline struct dentry *debugfs_create_x8(const char *name, umode_t mode,
150 struct dentry *parent, 150 struct dentry *parent,
151 u8 *value) 151 u8 *value)
152{ 152{
153 return ERR_PTR(-ENODEV); 153 return ERR_PTR(-ENODEV);
154} 154}
155 155
156static inline struct dentry *debugfs_create_x16(const char *name, mode_t mode, 156static inline struct dentry *debugfs_create_x16(const char *name, umode_t mode,
157 struct dentry *parent, 157 struct dentry *parent,
158 u16 *value) 158 u16 *value)
159{ 159{
160 return ERR_PTR(-ENODEV); 160 return ERR_PTR(-ENODEV);
161} 161}
162 162
163static inline struct dentry *debugfs_create_x32(const char *name, mode_t mode, 163static inline struct dentry *debugfs_create_x32(const char *name, umode_t mode,
164 struct dentry *parent, 164 struct dentry *parent,
165 u32 *value) 165 u32 *value)
166{ 166{
167 return ERR_PTR(-ENODEV); 167 return ERR_PTR(-ENODEV);
168} 168}
169 169
170static inline struct dentry *debugfs_create_size_t(const char *name, mode_t mode, 170static inline struct dentry *debugfs_create_size_t(const char *name, umode_t mode,
171 struct dentry *parent, 171 struct dentry *parent,
172 size_t *value) 172 size_t *value)
173{ 173{
174 return ERR_PTR(-ENODEV); 174 return ERR_PTR(-ENODEV);
175} 175}
176 176
177static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode, 177static inline struct dentry *debugfs_create_bool(const char *name, umode_t mode,
178 struct dentry *parent, 178 struct dentry *parent,
179 u32 *value) 179 u32 *value)
180{ 180{
181 return ERR_PTR(-ENODEV); 181 return ERR_PTR(-ENODEV);
182} 182}
183 183
184static inline struct dentry *debugfs_create_blob(const char *name, mode_t mode, 184static inline struct dentry *debugfs_create_blob(const char *name, umode_t mode,
185 struct dentry *parent, 185 struct dentry *parent,
186 struct debugfs_blob_wrapper *blob) 186 struct debugfs_blob_wrapper *blob)
187{ 187{