1 --- a/arch/powerpc/kernel/align.c
2 +++ b/arch/powerpc/kernel/align.c
3 @@ -701,7 +701,7 @@ static int emulate_vsx(unsigned char __u
5 int fix_alignment(struct pt_regs *regs)
7 - unsigned int instr, nb, flags, instruction = 0;
8 + unsigned int instr, nb, flags, instruction __maybe_unused = 0;
9 unsigned int reg, areg;
11 unsigned char __user *addr;
12 --- a/arch/powerpc/kernel/signal_32.c
13 +++ b/arch/powerpc/kernel/signal_32.c
14 @@ -935,7 +935,7 @@ long sys_swapcontext(struct ucontext __u
15 struct ucontext __user *new_ctx,
16 int ctx_size, int r6, int r7, int r8, struct pt_regs *regs)
19 + unsigned char tmp __maybe_unused;
20 int ctx_has_vsx_region = 0;
23 @@ -1076,7 +1076,7 @@ int sys_debug_setcontext(struct ucontext
28 + unsigned char tmp __maybe_unused;
29 unsigned long new_msr = regs->msr;
30 #ifdef CONFIG_PPC_ADV_DEBUG_REGS
31 unsigned long new_dbcr0 = current->thread.dbcr0;
32 --- a/arch/powerpc/mm/mem.c
33 +++ b/arch/powerpc/mm/mem.c
34 @@ -171,7 +171,7 @@ void __init do_init_bootmem(void)
35 unsigned long start, bootmap_pages;
36 unsigned long total_pages;
37 struct memblock_region *reg;
39 + int boot_mapsize __maybe_unused;
41 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT;
42 total_pages = (memblock_end_of_DRAM() - memstart_addr) >> PAGE_SHIFT;
43 --- a/arch/powerpc/sysdev/qe_lib/qe_ic.c
44 +++ b/arch/powerpc/sysdev/qe_lib/qe_ic.c
45 @@ -327,7 +327,7 @@ void __init qe_ic_init(struct device_nod
49 - u32 temp = 0, ret, high_active = 0;
52 ret = of_address_to_resource(node, 0, &res);
54 @@ -376,7 +376,6 @@ void __init qe_ic_init(struct device_nod
55 /* choose destination signal for highest priority interrupt */
56 if (flags & QE_IC_HIGH_SIGNAL) {
57 temp |= (SIGNAL_HIGH << CICR_HPIT_SHIFT);
61 qe_ic_write(qe_ic->regs, QEIC_CICR, temp);