]> err.no Git - linux-2.6/commitdiff
[CIFS] Fix compiler warnings
authorSteve French <sfrench@us.ibm.com>
Fri, 16 Sep 2005 03:44:50 +0000 (20:44 -0700)
committerSteve French <sfrench@us.ibm.com>
Fri, 16 Sep 2005 03:44:50 +0000 (20:44 -0700)
Fix some compiler warnings noticed on x64 by me and ppc64 by Shaggy

Signed-off-by: Steve French (sfrench@us.ibm.com)
fs/cifs/asn1.c
fs/cifs/cifsglob.h
fs/cifs/file.c
fs/cifs/transport.c

index e02010dd73ec589a95d1543566519999c970bf2e..98539e2afe81e92494ad27c4c49789126847df8e 100644 (file)
@@ -191,7 +191,8 @@ asn1_header_decode(struct asn1_ctx *ctx,
                   unsigned char **eoc,
                   unsigned int *cls, unsigned int *con, unsigned int *tag)
 {
-       unsigned int def, len;
+       unsigned int def = 0; 
+       unsigned int len = 0;
 
        if (!asn1_id_decode(ctx, cls, con, tag))
                return 0;
index a9c791edede5959c690b088b42e4741758b0894f..cd421c76805e78b961b335f7f3d86da8ded1b24e 100644 (file)
@@ -331,7 +331,7 @@ CIFS_SB(struct super_block *sb)
        return sb->s_fs_info;
 }
 
-static inline const char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb)
+static inline char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb)
 {
        if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)
                return '/';
index 5ecda554f9130f9c386cdbff1e5c6ca9f0808015..4173f23a71d96b6bbea6cd2f100e0c023fcdbd32 100644 (file)
@@ -791,8 +791,8 @@ static ssize_t cifs_write(struct file *file, const char *write_data,
 
        pTcon = cifs_sb->tcon;
 
-       cFYI(1,(" write %d bytes to offset %lld of %s", write_size,
-          *poffset, file->f_dentry->d_name.name)); /* BB removeme BB */
+       cFYI(1,("write %zd bytes to offset %lld of %s", write_size,
+          *poffset, file->f_dentry->d_name.name));
 
        if (file->private_data == NULL)
                return -EBADF;
index 96f89eb6604025fc7c417649a4d629fc1fde6390..d5e0c4018f92e317624fae4afa989b70639068f5 100644 (file)
@@ -485,7 +485,7 @@ SendReceive2(const unsigned int xid, struct cifsSesInfo *ses,
                                BCC(in_buf) = le16_to_cpu(BCC(in_buf));
                } else {
                        rc = -EIO;
-                       cFYI(1,("Bad MID state? "));
+                       cFYI(1,("Bad MID state?"));
                }
        }
 cifs_no_response_exit2: