diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-07-12 22:48:00 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-12 23:33:42 +0200 |
commit | 536abdb0802f3fac1b217530741853843d63c281 (patch) | |
tree | 17697bc4a3f4a05ebb5e134bc8d89985cf27c92d /lib/locking-selftest-spin.h | |
parent | cifs: fix inode leak in cifs_get_inode_info_unix (diff) | |
download | linux-536abdb0802f3fac1b217530741853843d63c281.tar.xz linux-536abdb0802f3fac1b217530741853843d63c281.zip |
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>
Diffstat (limited to 'lib/locking-selftest-spin.h')
0 files changed, 0 insertions, 0 deletions