@@ -95,7 +95,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_u8_wo, NULL, debugfs_u8_set, "%llu\n");
95
95
* %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
96
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
99
struct dentry * parent , u8 * value )
100
100
{
101
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
147
* %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
148
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
151
struct dentry * parent , u16 * value )
152
152
{
153
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
199
* %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
200
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
203
struct dentry * parent , u32 * value )
204
204
{
205
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
252
* %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
253
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
256
struct dentry * parent , u64 * value )
257
257
{
258
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
298
* @value: a pointer to the variable that the file should read to and write
299
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
302
struct dentry * parent , u8 * value )
303
303
{
304
304
/* if there are no write bits set, make read only */
@@ -322,7 +322,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_x8);
322
322
* @value: a pointer to the variable that the file should read to and write
323
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
326
struct dentry * parent , u16 * value )
327
327
{
328
328
/* if there are no write bits set, make read only */
@@ -346,7 +346,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_x16);
346
346
* @value: a pointer to the variable that the file should read to and write
347
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
350
struct dentry * parent , u32 * value )
351
351
{
352
352
/* if there are no write bits set, make read only */
@@ -370,7 +370,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_x32);
370
370
* @value: a pointer to the variable that the file should read to and write
371
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
374
struct dentry * parent , u64 * value )
375
375
{
376
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
401
* @value: a pointer to the variable that the file should read to and write
402
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
405
struct dentry * parent , size_t * value )
406
406
{
407
407
return debugfs_create_file (name , mode , parent , value , & fops_size_t );
@@ -473,7 +473,7 @@ static const struct file_operations fops_bool = {
473
473
* %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
474
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
477
struct dentry * parent , u32 * value )
478
478
{
479
479
return debugfs_create_file (name , mode , parent , value , & fops_bool );
@@ -518,7 +518,7 @@ static const struct file_operations fops_blob = {
518
518
* %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
519
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
522
struct dentry * parent ,
523
523
struct debugfs_blob_wrapper * blob )
524
524
{
0 commit comments