patch for broken 3.8.4, 3.4.37, 3.2.41 kernels on mips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



as already written multiple times here, all current kernels are unable to compile on mips due a bad patch. to avoid these problems i advice to use the following patch or any other modified variant which works in the same way


Index: arch/mips/include/asm/signal.h
===================================================================
--- arch/mips/include/asm/signal.h      (revision 21038)
+++ arch/mips/include/asm/signal.h      (working copy)
@@ -11,6 +11,9 @@

 #include <linux/types.h>

+#define ARCH_HAS_NO_SA_RESTORER_FIELD
+
+
 #define _NSIG          128
 #define _NSIG_BPW      (sizeof(unsigned long) * 8)
 #define _NSIG_WORDS    (_NSIG / _NSIG_BPW)
Index: kernel/signal.c
===================================================================
--- kernel/signal.c     (revision 21038)
+++ kernel/signal.c     (working copy)
@@ -481,7 +481,7 @@
                if (force_default || ka->sa.sa_handler != SIG_IGN)
                        ka->sa.sa_handler = SIG_DFL;
                ka->sa.sa_flags = 0;
-#ifdef SA_RESTORER
+#if defined(SA_RESTORER) && !defined(ARCH_HAS_NO_SA_RESTORER_FIELD)
                ka->sa.sa_restorer = NULL;
 #endif
                sigemptyset(&ka->sa.sa_mask);



regards,
Sebastian Gottschall




--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]