sysfs: propagate umode_t
[sfrench/cifs-2.6.git] / fs / sysfs / sysfs.h
index ce29e28b766d9dbe6812ca506e6fbb0f7a44ec9e..7484a36ee67863f7bc28c2a053104480b92456c5 100644 (file)
@@ -79,7 +79,7 @@ struct sysfs_dirent {
        };
 
        unsigned int            s_flags;
-       unsigned short          s_mode;
+       umode_t                 s_mode;
        ino_t                   s_ino;
        struct sysfs_inode_attrs *s_iattr;
 };
@@ -229,7 +229,7 @@ int sysfs_add_file(struct sysfs_dirent *dir_sd,
                   const struct attribute *attr, int type);
 
 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);
 /*
  * bin.c
  */