kernel: mark kmod-udptunnel as hiddden to replace the NET_UDP_TUNNEL kconfig hack
[openwrt/openwrt.git] / target / linux / generic / patches-4.1 / 304-mips_disable_fpu.patch
index 6237d31ec027b90a02dd300021ace6362e192afb..3288d19d8e66d19453c853c80fd53e18d75c76a1 100644 (file)
@@ -26,7 +26,7 @@ v2: incorporated changes suggested by Jonas Gorski
 
 --- a/arch/mips/Kconfig
 +++ b/arch/mips/Kconfig
-@@ -2667,6 +2667,20 @@ config MIPS_O32_FP64_SUPPORT
+@@ -2668,6 +2668,20 @@ config MIPS_O32_FP64_SUPPORT
  
          If unsure, say N.
  
@@ -82,7 +82,7 @@ v2: incorporated changes suggested by Jonas Gorski
  #ifdef CONFIG_DEBUG_FS
  
  struct mips_fpu_emulator_stats {
-@@ -66,6 +67,20 @@ extern int do_dsemulret(struct pt_regs *
+@@ -66,6 +67,21 @@ extern int do_dsemulret(struct pt_regs *
  extern int fpu_emulator_cop1Handler(struct pt_regs *xcp,
                                    struct mips_fpu_struct *ctx, int has_fpu,
                                    void *__user *fault_addr);
@@ -96,6 +96,7 @@ v2: incorporated changes suggested by Jonas Gorski
 +                              struct mips_fpu_struct *ctx, int has_fpu,
 +                              void *__user *fault_addr)
 +{
++      *fault_addr = NULL;
 +      return SIGILL;  /* we don't speak MIPS FPU */
 +}
 +#endif        /* CONFIG_MIPS_FPU_EMULATOR */