diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-05 00:51:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-05 00:51:12 +0000 |
commit | 0e1fb48428d4f605cbe623111d28af500a8ff447 (patch) | |
tree | 59d29179b1e05085e50761cb0c97753454ab6fb3 /target/linux/generic | |
parent | 08df28c1bf50d5f26209b5a090f5b966fdb1d355 (diff) | |
download | master-187ad058-0e1fb48428d4f605cbe623111d28af500a8ff447.tar.gz master-187ad058-0e1fb48428d4f605cbe623111d28af500a8ff447.tar.bz2 master-187ad058-0e1fb48428d4f605cbe623111d28af500a8ff447.zip |
kernel: fix powerpc unused-but-set variables
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30817 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-2.6.38/322-powerpc_unused_var.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.38/322-powerpc_unused_var.patch b/target/linux/generic/patches-2.6.38/322-powerpc_unused_var.patch new file mode 100644 index 0000000000..bbe48d521a --- /dev/null +++ b/target/linux/generic/patches-2.6.38/322-powerpc_unused_var.patch @@ -0,0 +1,61 @@ +--- a/arch/powerpc/kernel/align.c ++++ b/arch/powerpc/kernel/align.c +@@ -701,7 +701,7 @@ + + int fix_alignment(struct pt_regs *regs) + { +- unsigned int instr, nb, flags, instruction = 0; ++ unsigned int instr, nb, flags, instruction __maybe_unused = 0; + unsigned int reg, areg; + unsigned int dsisr; + unsigned char __user *addr; +--- a/arch/powerpc/kernel/signal_32.c ++++ b/arch/powerpc/kernel/signal_32.c +@@ -935,7 +935,7 @@ + struct ucontext __user *new_ctx, + int ctx_size, int r6, int r7, int r8, struct pt_regs *regs) + { +- unsigned char tmp; ++ unsigned char tmp __maybe_unused; + int ctx_has_vsx_region = 0; + + #ifdef CONFIG_PPC64 +@@ -1076,7 +1076,7 @@ + { + struct sig_dbg_op op; + int i; +- unsigned char tmp; ++ unsigned char tmp __maybe_unused; + unsigned long new_msr = regs->msr; + #ifdef CONFIG_PPC_ADV_DEBUG_REGS + unsigned long new_dbcr0 = current->thread.dbcr0; +--- a/arch/powerpc/mm/mem.c ++++ b/arch/powerpc/mm/mem.c +@@ -171,7 +171,7 @@ + unsigned long start, bootmap_pages; + unsigned long total_pages; + struct memblock_region *reg; +- int boot_mapsize; ++ int boot_mapsize __maybe_unused; + + max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; + total_pages = (memblock_end_of_DRAM() - memstart_addr) >> PAGE_SHIFT; +--- a/arch/powerpc/sysdev/qe_lib/qe_ic.c ++++ b/arch/powerpc/sysdev/qe_lib/qe_ic.c +@@ -327,7 +327,7 @@ + { + struct qe_ic *qe_ic; + struct resource res; +- u32 temp = 0, ret, high_active = 0; ++ u32 temp = 0, ret; + + ret = of_address_to_resource(node, 0, &res); + if (ret) +@@ -376,7 +376,6 @@ + /* choose destination signal for highest priority interrupt */ + if (flags & QE_IC_HIGH_SIGNAL) { + temp |= (SIGNAL_HIGH << CICR_HPIT_SHIFT); +- high_active = 1; + } + + qe_ic_write(qe_ic->regs, QEIC_CICR, temp); |