aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-03-26 09:55:29 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-14 22:55:17 -0700
commita9d8aaedf15cc981df0aebda88b113eeee9c5cab (patch)
treedec5fc351a40c90f06f986df4f8b6e7b1ec9dc27 /include
parent1b48f57ff205805a81c56c7b480347349bf19620 (diff)
downloadkernel_samsung_smdk4412-a9d8aaedf15cc981df0aebda88b113eeee9c5cab.zip
kernel_samsung_smdk4412-a9d8aaedf15cc981df0aebda88b113eeee9c5cab.tar.gz
kernel_samsung_smdk4412-a9d8aaedf15cc981df0aebda88b113eeee9c5cab.tar.bz2
cifs: silence compiler warnings showing up with gcc-4.7.0
commit b2a3ad9ca502169fc4c11296fa20f56059c7c031 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions