Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ecc833b authored by Al Viro's avatar Al Viro
Browse files

mode_t, whack-a-mole at 11...



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent aee0c612
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -216,7 +216,7 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_iomem_x32, wil_debugfs_iomem_x32_get,
			wil_debugfs_iomem_x32_set, "0x%08llx\n");
			wil_debugfs_iomem_x32_set, "0x%08llx\n");


static struct dentry *wil_debugfs_create_iomem_x32(const char *name,
static struct dentry *wil_debugfs_create_iomem_x32(const char *name,
						   mode_t mode,
						   umode_t mode,
						   struct dentry *parent,
						   struct dentry *parent,
						   void __iomem *value)
						   void __iomem *value)
{
{
@@ -367,7 +367,7 @@ static const struct file_operations fops_ioblob = {


static
static
struct dentry *wil_debugfs_create_ioblob(const char *name,
struct dentry *wil_debugfs_create_ioblob(const char *name,
					 mode_t mode,
					 umode_t mode,
					 struct dentry *parent,
					 struct dentry *parent,
					 struct debugfs_blob_wrapper *blob)
					 struct debugfs_blob_wrapper *blob)
{
{
+1 −1
Original line number Original line Diff line number Diff line
@@ -120,7 +120,7 @@ enum {
struct dgrp_proc_entry {
struct dgrp_proc_entry {
	int                  id;          /* Integer identifier */
	int                  id;          /* Integer identifier */
	const char        *name;          /* ASCII identifier */
	const char        *name;          /* ASCII identifier */
	mode_t             mode;          /* File access permissions */
	umode_t            mode;          /* File access permissions */
	struct dgrp_proc_entry *child;    /* Child pointer */
	struct dgrp_proc_entry *child;    /* Child pointer */


	/* file ops to use, pass NULL to use default */
	/* file ops to use, pass NULL to use default */
+1 −1
Original line number Original line Diff line number Diff line
@@ -228,7 +228,7 @@ static void register_proc_table(struct dgrp_proc_entry *table,
{
{
	struct proc_dir_entry *de;
	struct proc_dir_entry *de;
	int len;
	int len;
	mode_t mode;
	umode_t mode;


	if (table == NULL)
	if (table == NULL)
		return;
		return;
+1 −1
Original line number Original line Diff line number Diff line
@@ -299,7 +299,7 @@ int f2fs_acl_chmod(struct inode *inode)
	struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
	struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
	struct posix_acl *acl;
	struct posix_acl *acl;
	int error;
	int error;
	mode_t mode = get_inode_mode(inode);
	umode_t mode = get_inode_mode(inode);


	if (!test_opt(sbi, POSIX_ACL))
	if (!test_opt(sbi, POSIX_ACL))
		return 0;
		return 0;
+1 −1
Original line number Original line Diff line number Diff line
@@ -60,7 +60,7 @@ static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = {


static void set_de_type(struct f2fs_dir_entry *de, struct inode *inode)
static void set_de_type(struct f2fs_dir_entry *de, struct inode *inode)
{
{
	mode_t mode = inode->i_mode;
	umode_t mode = inode->i_mode;
	de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT];
	de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT];
}
}


Loading