1 --- a/arch/powerpc/kernel/align.c
2 +++ b/arch/powerpc/kernel/align.c
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
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;
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
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
49 - u32 temp = 0, ret, high_active = 0;
52 ret = of_address_to_resource(node, 0, &res);
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);