]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
fat: gcc 4.3 warning fix
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Mon, 16 Jul 2007 06:39:56 +0000 (23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:42 +0000 (09:05 -0700)
commit9aacd599342fdfc1fb9422f37e900609b7a46249
tree45c835330122496dfd51b946890ce8580d854173
parent259902ea951008bcbd31a49f667062ff8012ef55
fat: gcc 4.3 warning fix

This patch fixes the following warnings.

fs/fat/dir.c: In function 'fat_parse_long':
include/linux/msdos_fs.h:294: warning: array subscript is above array bounds
include/linux/msdos_fs.h:295: warning: array subscript is above array bounds
include/linux/msdos_fs.h:295: warning: array subscript is above array bounds

The ->name is defined as "name[8], ext[3]", but fat_checksum() uses
those as name[11]. There is no actual problem, but it's not a good manner.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/dir.c
fs/fat/inode.c
include/linux/msdos_fs.h