]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cifs: fix wksidarr declaration to be big-endian friendly
authorJeff Layton <jlayton@redhat.com>
Sat, 12 Jul 2008 20:48:00 +0000 (13:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 12 Jul 2008 21:33:42 +0000 (14:33 -0700)
commit536abdb0802f3fac1b217530741853843d63c281
tree17697bc4a3f4a05ebb5e134bc8d89985cf27c92d
parente911d0cc877ff027d5bd09fc33148ab76f0fdf0e
cifs: fix wksidarr declaration to be big-endian friendly

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cifs/cifsacl.c