diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 04:33:43 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:56 -0500 |
commit | f4ae40a6a50a98ac23d4b285f739455e926a473e (patch) | |
tree | c84d7393700bd85e5285a194f8c22d4d00e36b28 /fs/debugfs/file.c | |
parent | 48176a973d65572e61d0ce95495e5072887e6fb6 (diff) |
switch debugfs to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/debugfs/file.c')
-rw-r--r-- | fs/debugfs/file.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 90f76575c056..d5016606fb27 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c | |||
@@ -95,7 +95,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_u8_wo, NULL, debugfs_u8_set, "%llu\n"); | |||
95 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling | 95 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling |
96 | * code. | 96 | * code. |
97 | */ | 97 | */ |
98 | struct dentry *debugfs_create_u8(const char *name, mode_t mode, | 98 | struct dentry *debugfs_create_u8(const char *name, umode_t mode, |
99 | struct dentry *parent, u8 *value) | 99 | struct dentry *parent, u8 *value) |
100 | { | 100 | { |
101 | /* if there are no write bits set, make read only */ | 101 | /* if there are no write bits set, make read only */ |
@@ -147,7 +147,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_u16_wo, NULL, debugfs_u16_set, "%llu\n"); | |||
147 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling | 147 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling |
148 | * code. | 148 | * code. |
149 | */ | 149 | */ |
150 | struct dentry *debugfs_create_u16(const char *name, mode_t mode, | 150 | struct dentry *debugfs_create_u16(const char *name, umode_t mode, |
151 | struct dentry *parent, u16 *value) | 151 | struct dentry *parent, u16 *value) |
152 | { | 152 | { |
153 | /* if there are no write bits set, make read only */ | 153 | /* if there are no write bits set, make read only */ |
@@ -199,7 +199,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_u32_wo, NULL, debugfs_u32_set, "%llu\n"); | |||
199 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling | 199 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling |
200 | * code. | 200 | * code. |
201 | */ | 201 | */ |
202 | struct dentry *debugfs_create_u32(const char *name, mode_t mode, | 202 | struct dentry *debugfs_create_u32(const char *name, umode_t mode, |
203 | struct dentry *parent, u32 *value) | 203 | struct dentry *parent, u32 *value) |
204 | { | 204 | { |
205 | /* if there are no write bits set, make read only */ | 205 | /* if there are no write bits set, make read only */ |
@@ -252,7 +252,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_u64_wo, NULL, debugfs_u64_set, "%llu\n"); | |||
252 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling | 252 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling |
253 | * code. | 253 | * code. |
254 | */ | 254 | */ |
255 | struct dentry *debugfs_create_u64(const char *name, mode_t mode, | 255 | struct dentry *debugfs_create_u64(const char *name, umode_t mode, |
256 | struct dentry *parent, u64 *value) | 256 | struct dentry *parent, u64 *value) |
257 | { | 257 | { |
258 | /* if there are no write bits set, make read only */ | 258 | /* if there are no write bits set, make read only */ |
@@ -298,7 +298,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_x64, debugfs_u64_get, debugfs_u64_set, "0x%016llx\n | |||
298 | * @value: a pointer to the variable that the file should read to and write | 298 | * @value: a pointer to the variable that the file should read to and write |
299 | * from. | 299 | * from. |
300 | */ | 300 | */ |
301 | struct dentry *debugfs_create_x8(const char *name, mode_t mode, | 301 | struct dentry *debugfs_create_x8(const char *name, umode_t mode, |
302 | struct dentry *parent, u8 *value) | 302 | struct dentry *parent, u8 *value) |
303 | { | 303 | { |
304 | /* if there are no write bits set, make read only */ | 304 | /* if there are no write bits set, make read only */ |
@@ -322,7 +322,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_x8); | |||
322 | * @value: a pointer to the variable that the file should read to and write | 322 | * @value: a pointer to the variable that the file should read to and write |
323 | * from. | 323 | * from. |
324 | */ | 324 | */ |
325 | struct dentry *debugfs_create_x16(const char *name, mode_t mode, | 325 | struct dentry *debugfs_create_x16(const char *name, umode_t mode, |
326 | struct dentry *parent, u16 *value) | 326 | struct dentry *parent, u16 *value) |
327 | { | 327 | { |
328 | /* if there are no write bits set, make read only */ | 328 | /* if there are no write bits set, make read only */ |
@@ -346,7 +346,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_x16); | |||
346 | * @value: a pointer to the variable that the file should read to and write | 346 | * @value: a pointer to the variable that the file should read to and write |
347 | * from. | 347 | * from. |
348 | */ | 348 | */ |
349 | struct dentry *debugfs_create_x32(const char *name, mode_t mode, | 349 | struct dentry *debugfs_create_x32(const char *name, umode_t mode, |
350 | struct dentry *parent, u32 *value) | 350 | struct dentry *parent, u32 *value) |
351 | { | 351 | { |
352 | /* if there are no write bits set, make read only */ | 352 | /* if there are no write bits set, make read only */ |
@@ -370,7 +370,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_x32); | |||
370 | * @value: a pointer to the variable that the file should read to and write | 370 | * @value: a pointer to the variable that the file should read to and write |
371 | * from. | 371 | * from. |
372 | */ | 372 | */ |
373 | struct dentry *debugfs_create_x64(const char *name, mode_t mode, | 373 | struct dentry *debugfs_create_x64(const char *name, umode_t mode, |
374 | struct dentry *parent, u64 *value) | 374 | struct dentry *parent, u64 *value) |
375 | { | 375 | { |
376 | return debugfs_create_file(name, mode, parent, value, &fops_x64); | 376 | return debugfs_create_file(name, mode, parent, value, &fops_x64); |
@@ -401,7 +401,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_size_t, debugfs_size_t_get, debugfs_size_t_set, | |||
401 | * @value: a pointer to the variable that the file should read to and write | 401 | * @value: a pointer to the variable that the file should read to and write |
402 | * from. | 402 | * from. |
403 | */ | 403 | */ |
404 | struct dentry *debugfs_create_size_t(const char *name, mode_t mode, | 404 | struct dentry *debugfs_create_size_t(const char *name, umode_t mode, |
405 | struct dentry *parent, size_t *value) | 405 | struct dentry *parent, size_t *value) |
406 | { | 406 | { |
407 | return debugfs_create_file(name, mode, parent, value, &fops_size_t); | 407 | return debugfs_create_file(name, mode, parent, value, &fops_size_t); |
@@ -473,7 +473,7 @@ static const struct file_operations fops_bool = { | |||
473 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling | 473 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling |
474 | * code. | 474 | * code. |
475 | */ | 475 | */ |
476 | struct dentry *debugfs_create_bool(const char *name, mode_t mode, | 476 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, |
477 | struct dentry *parent, u32 *value) | 477 | struct dentry *parent, u32 *value) |
478 | { | 478 | { |
479 | return debugfs_create_file(name, mode, parent, value, &fops_bool); | 479 | return debugfs_create_file(name, mode, parent, value, &fops_bool); |
@@ -518,7 +518,7 @@ static const struct file_operations fops_blob = { | |||
518 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling | 518 | * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling |
519 | * code. | 519 | * code. |
520 | */ | 520 | */ |
521 | struct dentry *debugfs_create_blob(const char *name, mode_t mode, | 521 | struct dentry *debugfs_create_blob(const char *name, umode_t mode, |
522 | struct dentry *parent, | 522 | struct dentry *parent, |
523 | struct debugfs_blob_wrapper *blob) | 523 | struct debugfs_blob_wrapper *blob) |
524 | { | 524 | { |