diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-03-02 13:19:00 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-03-02 13:19:00 +0000 |
commit | ea7de737bac41ae4282057263c724003b27e07c2 (patch) | |
tree | d16b17774ebd768844bceed5922bc6db4f276c00 /target/linux/generic/patches-2.6.36 | |
parent | 4c07d3a6267411a5f2a253bc303864cabcbcefe9 (diff) | |
download | upstream-ea7de737bac41ae4282057263c724003b27e07c2.tar.gz upstream-ea7de737bac41ae4282057263c724003b27e07c2.tar.bz2 upstream-ea7de737bac41ae4282057263c724003b27e07c2.zip |
[kernel/2.6.36] MIPS: mark unused variables
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30780 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-2.6.36')
-rw-r--r-- | target/linux/generic/patches-2.6.36/032-mips_unused_variables.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.36/032-mips_unused_variables.patch b/target/linux/generic/patches-2.6.36/032-mips_unused_variables.patch new file mode 100644 index 0000000000..2ff0468154 --- /dev/null +++ b/target/linux/generic/patches-2.6.36/032-mips_unused_variables.patch @@ -0,0 +1,44 @@ +--- a/arch/mips/kernel/signal.c ++++ b/arch/mips/kernel/signal.c +@@ -84,7 +84,7 @@ static int protected_save_fp_context(str + + static int protected_restore_fp_context(struct sigcontext __user *sc) + { +- int err, tmp; ++ int err, tmp __maybe_unused; + while (1) { + lock_fpu_owner(); + own_fpu_inatomic(0); +--- a/arch/mips/kernel/syscall.c ++++ b/arch/mips/kernel/syscall.c +@@ -383,7 +383,7 @@ save_static_function(sys_sysmips); + static int __used noinline + _sys_sysmips(nabi_no_regargs struct pt_regs regs) + { +- long cmd, arg1, arg2, arg3; ++ long cmd, arg1, arg2, arg3 __maybe_unused; + + cmd = regs.regs[4]; + arg1 = regs.regs[5]; +--- a/arch/mips/mm/init.c ++++ b/arch/mips/mm/init.c +@@ -324,7 +324,7 @@ int page_is_ram(unsigned long pagenr) + void __init paging_init(void) + { + unsigned long max_zone_pfns[MAX_NR_ZONES]; +- unsigned long lastpfn; ++ unsigned long lastpfn __maybe_unused; + + pagetable_init(); + +--- a/arch/mips/mm/c-r4k.c ++++ b/arch/mips/mm/c-r4k.c +@@ -1076,7 +1076,7 @@ static int __cpuinit probe_scache(void) + unsigned long flags, addr, begin, end, pow2; + unsigned int config = read_c0_config(); + struct cpuinfo_mips *c = ¤t_cpu_data; +- int tmp; ++ int tmp __maybe_unused; + + if (config & CONF_SC) + return 0; |