X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=toolchain%2Fkernel-headers%2Fpatches-3.3.5%2F100-ext2_fs_header.patch;fp=toolchain%2Fkernel-headers%2Fpatches-3.3.5%2F100-ext2_fs_header.patch;h=1bd9c9d549490e4b4a67523cd31c92cd851f7b8a;hp=0000000000000000000000000000000000000000;hb=45c508b7cbddf4cd290f45c8d7733f3753cda430;hpb=678569f8a7e5e0fa83dd60621031b4ebabdb73e3 diff --git a/toolchain/kernel-headers/patches-3.3.5/100-ext2_fs_header.patch b/toolchain/kernel-headers/patches-3.3.5/100-ext2_fs_header.patch new file mode 100644 index 0000000000..1bd9c9d549 --- /dev/null +++ b/toolchain/kernel-headers/patches-3.3.5/100-ext2_fs_header.patch @@ -0,0 +1,24 @@ +Index: linux-3.3.5/include/linux/ext2_fs.h +=================================================================== +--- linux-3.3.5.orig/include/linux/ext2_fs.h 2012-05-12 05:49:43.555033434 -0400 ++++ linux-3.3.5/include/linux/ext2_fs.h 2012-05-12 05:51:01.895033564 -0400 +@@ -209,7 +209,11 @@ + #define EXT2_OTHER_FLMASK (EXT2_NODUMP_FL | EXT2_NOATIME_FL) + + /* Mask out flags that are inappropriate for the given type of inode. */ ++#ifdef __KERNEL__ + static inline __u32 ext2_mask_flags(umode_t mode, __u32 flags) ++#else ++static inline __u32 ext2_mask_flags(unsigned short mode, __u32 flags) ++#endif + { + if (S_ISDIR(mode)) + return flags; +@@ -219,6 +223,7 @@ + return flags & EXT2_OTHER_FLMASK; + } + ++ + /* + * ioctl commands + */