lol

mips linux: Adding a patch to fix an ext3 bug in 3.5 and 3.6

I made it apply to all Mips, although the bug works only for n32 and o32 ABIs.
We don't support any n64 by now.

+24
+17
pkgs/os-specific/linux/kernel/mips-ext3-n32.patch
··· 1 + Dirty patch that makes ext3 work again on 3.5 and 3.6 kernels, 2 + on mips n32. 3 + 4 + http://www.linux-mips.org/archives/linux-mips/2012-11/msg00030.html 5 + 6 + diff --git a/fs/ext3/dir.c b/fs/ext3/dir.c 7 + index 92490e9..bf63d7b 100644 8 + --- a/fs/ext3/dir.c 9 + +++ b/fs/ext3/dir.c 10 + @@ -228,6 +228,7 @@ out: 11 + 12 + static inline int is_32bit_api(void) 13 + { 14 + + return 1; 15 + #ifdef CONFIG_COMPAT 16 + return is_compat_task(); 17 + #else
+5
pkgs/os-specific/linux/kernel/patches.nix
··· 262 262 patch = ./mips-fpu-sigill.patch; 263 263 }; 264 264 265 + mips_ext3_n32 = 266 + { name = "mips-ext3-n32"; 267 + patch = ./mips-ext3-n32.patch; 268 + }; 269 + 265 270 guruplug_defconfig = 266 271 { # Default configuration for the GuruPlug. From 267 272 # <http://www.openplug.org/plugwiki/images/c/c6/Guruplug-patchset-2.6.33.2.tar.bz2>.
+2
pkgs/top-level/all-packages.nix
··· 5871 5871 ] ++ lib.optionals (platform.kernelArch == "mips") 5872 5872 [ kernelPatches.mips_fpureg_emu 5873 5873 kernelPatches.mips_fpu_sigill 5874 + kernelPatches.mips_ext3_n32 5874 5875 ]; 5875 5876 }; 5876 5877 ··· 5883 5884 ] ++ lib.optionals (platform.kernelArch == "mips") 5884 5885 [ kernelPatches.mips_fpureg_emu 5885 5886 kernelPatches.mips_fpu_sigill 5887 + kernelPatches.mips_ext3_n32 5886 5888 ]; 5887 5889 }; 5888 5890