summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
authorAl Viro2011-07-25 05:44:53 +0200
committerAl Viro2012-01-04 04:55:03 +0100
commitfaef2b6c9960b5ae288899f461a2218ec6bb7928 (patch)
treeaf61427bb0984315800617263dbc4d8c42b7d7e7 /fs/sysfs/file.c
parentusbfs: propagate umode_t (diff)
downloadkernel-qcow2-linux-faef2b6c9960b5ae288899f461a2218ec6bb7928.tar.gz
kernel-qcow2-linux-faef2b6c9960b5ae288899f461a2218ec6bb7928.tar.xz
kernel-qcow2-linux-faef2b6c9960b5ae288899f461a2218ec6bb7928.zip
sysfs: propagate umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r--fs/sysfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 120c3adff6b0..62f4fb37789e 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -518,7 +518,7 @@ out:
}
int sysfs_add_file_mode(struct sysfs_dirent *dir_sd,
- const struct attribute *attr, int type, mode_t amode)
+ const struct attribute *attr, int type, umode_t amode)
{
umode_t mode = (amode & S_IALLUGO) | S_IFREG;
struct sysfs_addrm_cxt acxt;