* syscall.c: Remove static unsigned long trap veriable.
(get_scno): Use local trap variable.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
static struct pt_regs regs;
#elif defined(SPARC) || defined(SPARC64)
struct pt_regs regs; /* not static */
-static unsigned long trap;
#elif defined(LINUX_MIPSN32)
static long long a3;
static long long r2;
#elif defined(SPARC) || defined(SPARC64)
/* Disassemble the syscall trap. */
/* Retrieve the syscall trap instruction. */
+ unsigned long trap;
errno = 0;
# if defined(SPARC64)
trap = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)regs.tpc, 0);