diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-10-01 08:38:49 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-10-14 16:58:38 +1100 |
commit | cf50f447b22f540d738eb8ca09c3b3972a9ba0ac (patch) | |
tree | b7d62dcf49b3a3b99dff8442b28f430b024eecf1 /arch | |
parent | b6dcde5c74d1cbf16da37202a14fa187dce6e4c0 (diff) | |
download | linux-cf50f447b22f540d738eb8ca09c3b3972a9ba0ac.tar.gz linux-cf50f447b22f540d738eb8ca09c3b3972a9ba0ac.tar.bz2 linux-cf50f447b22f540d738eb8ca09c3b3972a9ba0ac.zip |
powerpc/kgdb: Fix build failure caused by "kgdb.c: unused variable 'acc'"
'acc' isn't used anywhere and thus triggers gcc warning, which causes
build error with CONFIG_PPC_DISABLE_WERROR=n (default):
cc1: warnings being treated as errors
arch/powerpc/kernel/kgdb.c: In function 'gdb_regs_to_pt_regs':
arch/powerpc/kernel/kgdb.c:289: warning: unused variable 'acc'
make[1]: *** [arch/powerpc/kernel/kgdb.o] Error 1
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/kgdb.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/kgdb.c b/arch/powerpc/kernel/kgdb.c index fe8f71dd0b3f..641c74bb8e27 100644 --- a/arch/powerpc/kernel/kgdb.c +++ b/arch/powerpc/kernel/kgdb.c @@ -282,12 +282,6 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) { unsigned long *ptr = gdb_regs; int reg; -#ifdef CONFIG_SPE - union { - u32 v32[2]; - u64 v64; - } acc; -#endif for (reg = 0; reg < 32; reg++) UNPACK64(regs->gpr[reg], ptr); |