Re: 2.6.13-mm2

Benoit Boissinot
2005-09-08T13:14:26Z

On 9/8/05, Andrew Morton <akpm@osdl.org> wrote:
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13/2.6.13-mm2/
>

> git-cifs.patch

it adds a new compilation warning with gcc-4:
fs/cifs/cifsglob.h:335: warning: type qualifiers ignored on function
return type

The following patch fixes it (removes the const qualifier)

Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>

--- ./fs/cifs/cifsglob.h 2005-09-08 14:50:34.000000000 +0200
+++ ./fs/cifs/cifsglob.h.new 2005-09-08 15:02:50.000000000 +0200
@@ -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 '/';