~/paste/1058
~/paste/1058
~/paste/1058

  1. diff --git a/trunk/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch b/trunk/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch
  2. index 17bcba5..35e6cb3 100644
  3. --- a/trunk/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch
  4. +++ b/trunk/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch
  5. @@ -1,44 +1,12 @@
  6. ---- a/arch/mips/kernel/signal.c
  7. -+++ b/arch/mips/kernel/signal.c
  8. -@@ -84,7 +84,7 @@ static int protected_save_fp_context(str
  9. -
  10. - static int protected_restore_fp_context(struct sigcontext __user *sc)
  11. - {
  12. --      int err, tmp;
  13. -+      int err, tmp  __maybe_unused;
  14. -       while (1) {
  15. -               lock_fpu_owner();
  16. -               own_fpu_inatomic(0);
  17. ---- a/arch/mips/kernel/syscall.c
  18. -+++ b/arch/mips/kernel/syscall.c
  19. -@@ -383,7 +383,7 @@ save_static_function(sys_sysmips);
  20. - static int __used noinline
  21. - _sys_sysmips(nabi_no_regargs struct pt_regs regs)
  22. - {
  23. --      long cmd, arg1, arg2, arg3;
  24. -+      long cmd, arg1, arg2, arg3 __maybe_unused;
  25. -
  26. -       cmd = regs.regs[4];
  27. -       arg1 = regs.regs[5];
  28. ---- a/arch/mips/mm/init.c
  29. -+++ b/arch/mips/mm/init.c
  30. -@@ -324,7 +324,7 @@ int page_is_ram(unsigned long pagenr)
  31. - void __init paging_init(void)
  32. - {
  33. -       unsigned long max_zone_pfns[MAX_NR_ZONES];
  34. --      unsigned long lastpfn;
  35. -+      unsigned long lastpfn __maybe_unused;
  36. -
  37. -       pagetable_init();
  38. -
  39. ---- a/arch/mips/mm/c-r4k.c
  40. -+++ b/arch/mips/mm/c-r4k.c
  41. -@@ -1075,7 +1075,7 @@ static int __cpuinit probe_scache(void)
  42. -       unsigned long flags, addr, begin, end, pow2;
  43. -       unsigned int config = read_c0_config();
  44. -       struct cpuinfo_mips *c = &current_cpu_data;
  45. --      int tmp;
  46. -+      int tmp __maybe_unused;
  47. -
  48. -       if (config & CONF_SC)
  49. -               return 0;
  50. +--- linux-2.6.37.6.org/Makefile        2012-03-28 17:10:58.297558774 +0200
  51. ++++ linux-2.6.37.6.mod/Makefile        2012-03-28 17:15:00.161564521 +0200
  52. +@@ -354,7 +354,8 @@
  53. +                  -fno-strict-aliasing -fno-common \
  54. +                  -Werror-implicit-function-declaration \
  55. +                  -Wno-format-security \
  56. +-                 -fno-delete-null-pointer-checks
  57. ++                 -fno-delete-null-pointer-checks \
  58. ++                 -Wno-error=unused-but-set-variable
  59. + KBUILD_AFLAGS_KERNEL :=
  60. + KBUILD_CFLAGS_KERNEL :=
  61. + KBUILD_AFLAGS   := -D__ASSEMBLY
Language: text
Posted by Anonymous at 28 Mar 2012, 03:21:40 UTC