diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-03-26 09:55:29 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2012-03-31 17:31:25 -0500 |
commit | b2a3ad9ca502169fc4c11296fa20f56059c7c031 (patch) | |
tree | 3375266c2486554f5b1f1a9f18fd7a5f8880b312 /virt | |
parent | b5efb978469d152c2c7c0a09746fb0bfc6171868 (diff) | |
download | linux-stable-b2a3ad9ca502169fc4c11296fa20f56059c7c031.tar.gz linux-stable-b2a3ad9ca502169fc4c11296fa20f56059c7c031.tar.bz2 linux-stable-b2a3ad9ca502169fc4c11296fa20f56059c7c031.zip |
cifs: silence compiler warnings showing up with gcc-4.7.0
gcc-4.7.0 has started throwing these warnings when building cifs.ko.
CC [M] fs/cifs/cifssmb.o
fs/cifs/cifssmb.c: In function ‘CIFSSMBSetCIFSACL’:
fs/cifs/cifssmb.c:3905:9: warning: array subscript is above array bounds [-Warray-bounds]
fs/cifs/cifssmb.c: In function ‘CIFSSMBSetFileInfo’:
fs/cifs/cifssmb.c:5711:8: warning: array subscript is above array bounds [-Warray-bounds]
fs/cifs/cifssmb.c: In function ‘CIFSSMBUnixSetFileInfo’:
fs/cifs/cifssmb.c:6001:25: warning: array subscript is above array bounds [-Warray-bounds]
This patch cleans up the code a bit by using the offsetof macro instead
of the funky "&pSMB->hdr.Protocol" construct.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions