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>
This commit is contained in:

committed by
Linus Torvalds

parent
259902ea95
commit
9aacd59934
@@ -146,7 +146,7 @@ struct fat_boot_fsinfo {
|
||||
};
|
||||
|
||||
struct msdos_dir_entry {
|
||||
__u8 name[8],ext[3]; /* name and extension */
|
||||
__u8 name[MSDOS_NAME];/* name and extension */
|
||||
__u8 attr; /* attribute bits */
|
||||
__u8 lcase; /* Case for base and extension */
|
||||
__u8 ctime_cs; /* Creation time, centiseconds (0-199) */
|
||||
|
Reference in New Issue
Block a user