Commit 5eee25cacde61c37f1545a33d7fed88b14349976

Authored by Al Viro
1 parent 18df225242

ncpfs: propagate umode_t

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 3 changed files with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -919,7 +919,7 @@
919 919 goto out;
920 920 }
921 921  
922   -int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode,
  922 +int ncp_create_new(struct inode *dir, struct dentry *dentry, umode_t mode,
923 923 dev_t rdev, __le32 attributes)
924 924 {
925 925 struct ncp_server *server = NCP_SERVER(dir);
... ... @@ -928,7 +928,7 @@
928 928 int opmode;
929 929 __u8 __name[NCP_MAXPATHLEN + 1];
930 930  
931   - PPRINTK("ncp_create_new: creating %s/%s, mode=%x\n",
  931 + PPRINTK("ncp_create_new: creating %s/%s, mode=%hx\n",
932 932 dentry->d_parent->d_name.name, dentry->d_name.name, mode);
933 933  
934 934 ncp_age_dentry(server, dentry);
fs/ncpfs/ncplib_kernel.h
... ... @@ -114,7 +114,7 @@
114 114 int ncp_dirhandle_free(struct ncp_server *, __u8 dirhandle);
115 115  
116 116 int ncp_create_new(struct inode *dir, struct dentry *dentry,
117   - int mode, dev_t rdev, __le32 attributes);
  117 + umode_t mode, dev_t rdev, __le32 attributes);
118 118  
119 119 static inline int ncp_is_nfs_extras(struct ncp_server* server, unsigned int volnum) {
120 120 #ifdef CONFIG_NCPFS_NFS_NS
... ... @@ -108,7 +108,7 @@
108 108 char *rawlink;
109 109 int length, err, i, outlen;
110 110 int kludge;
111   - int mode;
  111 + umode_t mode;
112 112 __le32 attr;
113 113 unsigned int hdr;
114 114