[ifxmips] make selection of ASC for prom working
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.25 / 906-msdosfs_header.patch
1 --- a/include/linux/msdos_fs.h
2 +++ b/include/linux/msdos_fs.h
3 @@ -57,11 +57,13 @@
4 #define MSDOS_DOT ". " /* ".", padded to MSDOS_NAME chars */
5 #define MSDOS_DOTDOT ".. " /* "..", padded to MSDOS_NAME chars */
6
7 +#ifdef __KERNEL__
8 /* media of boot sector */
9 static inline int fat_valid_media(u8 media)
10 {
11 return 0xf8 <= media || media == 0xf0;
12 }
13 +#endif
14
15 #define FAT_FIRST_ENT(s, x) ((MSDOS_SB(s)->fat_bits == 32 ? 0x0FFFFF00 : \
16 MSDOS_SB(s)->fat_bits == 16 ? 0xFF00 : 0xF00) | (x))
This page took 0.050786 seconds and 5 git commands to generate.