Changeset 31123


Ignore:
Timestamp:
2012-03-28T17:28:13+02:00 (4 years ago)
Author:
mirko
Message:

[target/generic] deal with 'set-but-unused-variables' in a more generic way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch

    r30615 r31123  
    1 --- a/arch/mips/kernel/signal.c 
    2 +++ b/arch/mips/kernel/signal.c 
    3 @@ -84,7 +84,7 @@ static int protected_save_fp_context(str 
    4   
    5  static int protected_restore_fp_context(struct sigcontext __user *sc) 
    6  { 
    7 -       int err, tmp; 
    8 +       int err, tmp  __maybe_unused; 
    9         while (1) { 
    10                 lock_fpu_owner(); 
    11                 own_fpu_inatomic(0); 
    12 --- a/arch/mips/kernel/syscall.c 
    13 +++ b/arch/mips/kernel/syscall.c 
    14 @@ -383,7 +383,7 @@ save_static_function(sys_sysmips); 
    15  static int __used noinline 
    16  _sys_sysmips(nabi_no_regargs struct pt_regs regs) 
    17  { 
    18 -       long cmd, arg1, arg2, arg3; 
    19 +       long cmd, arg1, arg2, arg3 __maybe_unused; 
    20   
    21         cmd = regs.regs[4]; 
    22         arg1 = regs.regs[5]; 
    23 --- a/arch/mips/mm/init.c 
    24 +++ b/arch/mips/mm/init.c 
    25 @@ -324,7 +324,7 @@ int page_is_ram(unsigned long pagenr) 
    26  void __init paging_init(void) 
    27  { 
    28         unsigned long max_zone_pfns[MAX_NR_ZONES]; 
    29 -       unsigned long lastpfn; 
    30 +       unsigned long lastpfn __maybe_unused; 
    31   
    32         pagetable_init(); 
    33   
    34 --- a/arch/mips/mm/c-r4k.c 
    35 +++ b/arch/mips/mm/c-r4k.c 
    36 @@ -1075,7 +1075,7 @@ static int __cpuinit probe_scache(void) 
    37         unsigned long flags, addr, begin, end, pow2; 
    38         unsigned int config = read_c0_config(); 
    39         struct cpuinfo_mips *c = &current_cpu_data; 
    40 -       int tmp; 
    41 +       int tmp __maybe_unused; 
    42   
    43         if (config & CONF_SC) 
    44                 return 0; 
     1--- linux-2.6.37.6.org/Makefile 2012-03-28 17:10:58.297558774 +0200 
     2+++ linux-2.6.37.6.mod/Makefile 2012-03-28 17:15:00.161564521 +0200 
     3@@ -354,7 +354,8 @@ 
     4                   -fno-strict-aliasing -fno-common \ 
     5                   -Werror-implicit-function-declaration \ 
     6                   -Wno-format-security \ 
     7-                  -fno-delete-null-pointer-checks 
     8+                  -fno-delete-null-pointer-checks \ 
     9+                  -Wno-error=unused-but-set-variable 
     10 KBUILD_AFLAGS_KERNEL := 
     11 KBUILD_CFLAGS_KERNEL := 
     12 KBUILD_AFLAGS   := -D__ASSEMBLY__ 
Note: See TracChangeset for help on using the changeset viewer.