]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: fix wksidarr declaration to be big-endian friendly
authorJeff Layton <jlayton@redhat.com>
Sat, 12 Jul 2008 21:40:22 +0000 (21:40 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Jul 2008 16:14:09 +0000 (09:14 -0700)
commit3d961e684e6e0735492e0644ca06bbeb7919ccc2
tree8f33ae138a1cade72859bbcad3b58590c0c15ba0
parent6274fd5bf0b757543e7600c749d9cd33246a3131
cifs: fix wksidarr declaration to be big-endian friendly

commit 536abdb0802f3fac1b217530741853843d63c281 upstream

The current definition of wksidarr works fine on little endian arches
(since cpu_to_le32 is a no-op there), but on big-endian arches, it fails
to compile with this error:

error: braced-group within expression allowed only inside a function

The problem is that this static declaration has cpu_to_le32 embedded
within it, and that expands into a function macro.  We need to use
__constant_cpu_to_le32() instead.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Steven French <sfrench@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/cifsacl.c