mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 22:55:11 +00:00
powerpc/32: Mark both tmp variables as unused
Since the value of `tmp` is never intended to be read, declare both `tmp`
variables as unused. Fix warning (treated as error in W=1):
arch/powerpc/kernel/signal_32.c: In function ‘sys_swapcontext’:
arch/powerpc/kernel/signal_32.c:1048:16: error: variable ‘tmp’ set but not used
arch/powerpc/kernel/signal_32.c: In function ‘sys_debug_setcontext’:
arch/powerpc/kernel/signal_32.c🔢16: error: variable ‘tmp’ set but not used
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
174b701d3d
commit
67b464a89c
1 changed files with 2 additions and 2 deletions
|
@ -1045,7 +1045,7 @@ long sys_swapcontext(struct ucontext __user *old_ctx,
|
||||||
struct ucontext __user *new_ctx,
|
struct ucontext __user *new_ctx,
|
||||||
int ctx_size, int r6, int r7, int r8, struct pt_regs *regs)
|
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;
|
int ctx_has_vsx_region = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_PPC64
|
#ifdef CONFIG_PPC64
|
||||||
|
@ -1231,7 +1231,7 @@ int sys_debug_setcontext(struct ucontext __user *ctx,
|
||||||
{
|
{
|
||||||
struct sig_dbg_op op;
|
struct sig_dbg_op op;
|
||||||
int i;
|
int i;
|
||||||
unsigned char tmp;
|
unsigned char tmp __maybe_unused;
|
||||||
unsigned long new_msr = regs->msr;
|
unsigned long new_msr = regs->msr;
|
||||||
#ifdef CONFIG_PPC_ADV_DEBUG_REGS
|
#ifdef CONFIG_PPC_ADV_DEBUG_REGS
|
||||||
unsigned long new_dbcr0 = current->thread.debug.dbcr0;
|
unsigned long new_dbcr0 = current->thread.debug.dbcr0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue