Fix some compiler warnings noticed on x64 by me and ppc64 by Shaggy
Signed-off-by: Steve French (sfrench@us.ibm.com)
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;
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 '/';
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;
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: