···7373 struct dentry* debugfs_entries[DEBUG_MAX_VIEWS];7474 struct debug_view* views[DEBUG_MAX_VIEWS]; 7575 char name[DEBUG_MAX_NAME_LEN];7676- mode_t mode;7676+ umode_t mode;7777} debug_info_t;78787979typedef int (debug_header_proc_t) (debug_info_t* id,···124124 int buf_size);125125126126debug_info_t *debug_register_mode(const char *name, int pages, int nr_areas,127127- int buf_size, mode_t mode, uid_t uid,127127+ int buf_size, umode_t mode, uid_t uid,128128 gid_t gid);129129130130void debug_unregister(debug_info_t* id);
+4-4
arch/s390/kernel/debug.c
···7474static int debug_open(struct inode *inode, struct file *file);7575static int debug_close(struct inode *inode, struct file *file);7676static debug_info_t *debug_info_create(const char *name, int pages_per_area,7777- int nr_areas, int buf_size, mode_t mode);7777+ int nr_areas, int buf_size, umode_t mode);7878static void debug_info_get(debug_info_t *);7979static void debug_info_put(debug_info_t *);8080static int debug_prolog_level_fn(debug_info_t * id,···330330331331static debug_info_t*332332debug_info_create(const char *name, int pages_per_area, int nr_areas,333333- int buf_size, mode_t mode)333333+ int buf_size, umode_t mode)334334{335335 debug_info_t* rc;336336···688688 */689689690690debug_info_t *debug_register_mode(const char *name, int pages_per_area,691691- int nr_areas, int buf_size, mode_t mode,691691+ int nr_areas, int buf_size, umode_t mode,692692 uid_t uid, gid_t gid)693693{694694 debug_info_t *rc = NULL;···10901090 int rc = 0;10911091 int i;10921092 unsigned long flags;10931093- mode_t mode;10931093+ umode_t mode;10941094 struct dentry *pde;1095109510961096 if (!id)
···9595 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling9696 * code.9797 */9898-struct dentry *debugfs_create_u8(const char *name, mode_t mode,9898+struct dentry *debugfs_create_u8(const char *name, umode_t mode,9999 struct dentry *parent, u8 *value)100100{101101 /* if there are no write bits set, make read only */···147147 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling148148 * code.149149 */150150-struct dentry *debugfs_create_u16(const char *name, mode_t mode,150150+struct dentry *debugfs_create_u16(const char *name, umode_t mode,151151 struct dentry *parent, u16 *value)152152{153153 /* if there are no write bits set, make read only */···199199 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling200200 * code.201201 */202202-struct dentry *debugfs_create_u32(const char *name, mode_t mode,202202+struct dentry *debugfs_create_u32(const char *name, umode_t mode,203203 struct dentry *parent, u32 *value)204204{205205 /* if there are no write bits set, make read only */···252252 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling253253 * code.254254 */255255-struct dentry *debugfs_create_u64(const char *name, mode_t mode,255255+struct dentry *debugfs_create_u64(const char *name, umode_t mode,256256 struct dentry *parent, u64 *value)257257{258258 /* if there are no write bits set, make read only */···298298 * @value: a pointer to the variable that the file should read to and write299299 * from.300300 */301301-struct dentry *debugfs_create_x8(const char *name, mode_t mode,301301+struct dentry *debugfs_create_x8(const char *name, umode_t mode,302302 struct dentry *parent, u8 *value)303303{304304 /* if there are no write bits set, make read only */···322322 * @value: a pointer to the variable that the file should read to and write323323 * from.324324 */325325-struct dentry *debugfs_create_x16(const char *name, mode_t mode,325325+struct dentry *debugfs_create_x16(const char *name, umode_t mode,326326 struct dentry *parent, u16 *value)327327{328328 /* if there are no write bits set, make read only */···346346 * @value: a pointer to the variable that the file should read to and write347347 * from.348348 */349349-struct dentry *debugfs_create_x32(const char *name, mode_t mode,349349+struct dentry *debugfs_create_x32(const char *name, umode_t mode,350350 struct dentry *parent, u32 *value)351351{352352 /* if there are no write bits set, make read only */···370370 * @value: a pointer to the variable that the file should read to and write371371 * from.372372 */373373-struct dentry *debugfs_create_x64(const char *name, mode_t mode,373373+struct dentry *debugfs_create_x64(const char *name, umode_t mode,374374 struct dentry *parent, u64 *value)375375{376376 return debugfs_create_file(name, mode, parent, value, &fops_x64);···401401 * @value: a pointer to the variable that the file should read to and write402402 * from.403403 */404404-struct dentry *debugfs_create_size_t(const char *name, mode_t mode,404404+struct dentry *debugfs_create_size_t(const char *name, umode_t mode,405405 struct dentry *parent, size_t *value)406406{407407 return debugfs_create_file(name, mode, parent, value, &fops_size_t);···473473 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling474474 * code.475475 */476476-struct dentry *debugfs_create_bool(const char *name, mode_t mode,476476+struct dentry *debugfs_create_bool(const char *name, umode_t mode,477477 struct dentry *parent, u32 *value)478478{479479 return debugfs_create_file(name, mode, parent, value, &fops_bool);···518518 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling519519 * code.520520 */521521-struct dentry *debugfs_create_blob(const char *name, mode_t mode,521521+struct dentry *debugfs_create_blob(const char *name, umode_t mode,522522 struct dentry *parent,523523 struct debugfs_blob_wrapper *blob)524524{
+7-7
fs/debugfs/inode.c
···3030static int debugfs_mount_count;3131static bool debugfs_registered;32323333-static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t dev,3333+static struct inode *debugfs_get_inode(struct super_block *sb, umode_t mode, dev_t dev,3434 void *data, const struct file_operations *fops)35353636{···69697070/* SMP-safe */7171static int debugfs_mknod(struct inode *dir, struct dentry *dentry,7272- int mode, dev_t dev, void *data,7272+ umode_t mode, dev_t dev, void *data,7373 const struct file_operations *fops)7474{7575 struct inode *inode;···8787 return error;8888}89899090-static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, int mode,9090+static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode,9191 void *data, const struct file_operations *fops)9292{9393 int res;···101101 return res;102102}103103104104-static int debugfs_link(struct inode *dir, struct dentry *dentry, int mode,104104+static int debugfs_link(struct inode *dir, struct dentry *dentry, umode_t mode,105105 void *data, const struct file_operations *fops)106106{107107 mode = (mode & S_IALLUGO) | S_IFLNK;108108 return debugfs_mknod(dir, dentry, mode, 0, data, fops);109109}110110111111-static int debugfs_create(struct inode *dir, struct dentry *dentry, int mode,111111+static int debugfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,112112 void *data, const struct file_operations *fops)113113{114114 int res;···146146 .kill_sb = kill_litter_super,147147};148148149149-static int debugfs_create_by_name(const char *name, mode_t mode,149149+static int debugfs_create_by_name(const char *name, umode_t mode,150150 struct dentry *parent,151151 struct dentry **dentry,152152 void *data,···214214 * If debugfs is not enabled in the kernel, the value -%ENODEV will be215215 * returned.216216 */217217-struct dentry *debugfs_create_file(const char *name, mode_t mode,217217+struct dentry *debugfs_create_file(const char *name, umode_t mode,218218 struct dentry *parent, void *data,219219 const struct file_operations *fops)220220{