diff options
author | Igor Mammedov <niallain@gmail.com> | 2008-04-28 19:08:21 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-04-28 19:08:21 -0400 |
commit | e9f20d6f03e8df393b001dab6dc5226c2a5daf57 (patch) | |
tree | 73e94fa5e4f83576c97e36187b809c5aad2ade30 /fs/ncpfs | |
parent | bf62fd887cab230f5952b611bde25e8e15acb454 (diff) | |
parent | e31a94ed371c70855eb30b77c490d6d85dd4da26 (diff) |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'fs/ncpfs')
-rw-r--r-- | fs/ncpfs/inode.c | 6 | ||||
-rw-r--r-- | fs/ncpfs/ioctl.c | 17 | ||||
-rw-r--r-- | fs/ncpfs/ncpsign_kernel.c | 2 |
3 files changed, 9 insertions, 16 deletions
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index fbbb9f7afa1a..2e5ab1204dec 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -107,12 +107,6 @@ static const struct super_operations ncp_sops = | |||
107 | .show_options = ncp_show_options, | 107 | .show_options = ncp_show_options, |
108 | }; | 108 | }; |
109 | 109 | ||
110 | extern struct dentry_operations ncp_root_dentry_operations; | ||
111 | #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS) | ||
112 | extern const struct address_space_operations ncp_symlink_aops; | ||
113 | extern int ncp_symlink(struct inode*, struct dentry*, const char*); | ||
114 | #endif | ||
115 | |||
116 | /* | 110 | /* |
117 | * Fill in the ncpfs-specific information in the inode. | 111 | * Fill in the ncpfs-specific information in the inode. |
118 | */ | 112 | */ |
diff --git a/fs/ncpfs/ioctl.c b/fs/ncpfs/ioctl.c index ad8f167e54bc..3a97c95e1ca2 100644 --- a/fs/ncpfs/ioctl.c +++ b/fs/ncpfs/ioctl.c | |||
@@ -389,11 +389,11 @@ static int __ncp_ioctl(struct inode *inode, struct file *filp, | |||
389 | struct dentry* dentry = inode->i_sb->s_root; | 389 | struct dentry* dentry = inode->i_sb->s_root; |
390 | 390 | ||
391 | if (dentry) { | 391 | if (dentry) { |
392 | struct inode* inode = dentry->d_inode; | 392 | struct inode* s_inode = dentry->d_inode; |
393 | 393 | ||
394 | if (inode) { | 394 | if (s_inode) { |
395 | sr.volNumber = NCP_FINFO(inode)->volNumber; | 395 | sr.volNumber = NCP_FINFO(s_inode)->volNumber; |
396 | sr.dirEntNum = NCP_FINFO(inode)->dirEntNum; | 396 | sr.dirEntNum = NCP_FINFO(s_inode)->dirEntNum; |
397 | sr.namespace = server->name_space[sr.volNumber]; | 397 | sr.namespace = server->name_space[sr.volNumber]; |
398 | } else | 398 | } else |
399 | DPRINTK("ncpfs: s_root->d_inode==NULL\n"); | 399 | DPRINTK("ncpfs: s_root->d_inode==NULL\n"); |
@@ -439,12 +439,12 @@ static int __ncp_ioctl(struct inode *inode, struct file *filp, | |||
439 | dentry = inode->i_sb->s_root; | 439 | dentry = inode->i_sb->s_root; |
440 | server->root_setuped = 1; | 440 | server->root_setuped = 1; |
441 | if (dentry) { | 441 | if (dentry) { |
442 | struct inode* inode = dentry->d_inode; | 442 | struct inode* s_inode = dentry->d_inode; |
443 | 443 | ||
444 | if (inode) { | 444 | if (inode) { |
445 | NCP_FINFO(inode)->volNumber = vnum; | 445 | NCP_FINFO(s_inode)->volNumber = vnum; |
446 | NCP_FINFO(inode)->dirEntNum = de; | 446 | NCP_FINFO(s_inode)->dirEntNum = de; |
447 | NCP_FINFO(inode)->DosDirNum = dosde; | 447 | NCP_FINFO(s_inode)->DosDirNum = dosde; |
448 | } else | 448 | } else |
449 | DPRINTK("ncpfs: s_root->d_inode==NULL\n"); | 449 | DPRINTK("ncpfs: s_root->d_inode==NULL\n"); |
450 | } else | 450 | } else |
@@ -519,7 +519,6 @@ static int __ncp_ioctl(struct inode *inode, struct file *filp, | |||
519 | } | 519 | } |
520 | { | 520 | { |
521 | struct ncp_lock_ioctl rqdata; | 521 | struct ncp_lock_ioctl rqdata; |
522 | int result; | ||
523 | 522 | ||
524 | if (copy_from_user(&rqdata, argp, sizeof(rqdata))) | 523 | if (copy_from_user(&rqdata, argp, sizeof(rqdata))) |
525 | return -EFAULT; | 524 | return -EFAULT; |
diff --git a/fs/ncpfs/ncpsign_kernel.c b/fs/ncpfs/ncpsign_kernel.c index 749a18d33599..7c0b5c21e6cf 100644 --- a/fs/ncpfs/ncpsign_kernel.c +++ b/fs/ncpfs/ncpsign_kernel.c | |||
@@ -55,7 +55,7 @@ static void nwsign(char *r_data1, char *r_data2, char *outdata) { | |||
55 | unsigned int w0,w1,w2,w3; | 55 | unsigned int w0,w1,w2,w3; |
56 | static int rbit[4]={0, 2, 1, 3}; | 56 | static int rbit[4]={0, 2, 1, 3}; |
57 | #ifdef __i386__ | 57 | #ifdef __i386__ |
58 | unsigned int *data2=(int *)r_data2; | 58 | unsigned int *data2=(unsigned int *)r_data2; |
59 | #else | 59 | #else |
60 | unsigned int data2[16]; | 60 | unsigned int data2[16]; |
61 | for (i=0;i<16;i++) | 61 | for (i=0;i<16;i++) |