summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorchengang@emindsoft.com.cn <chengang@emindsoft.com.cn>2015-12-26 16:49:58 +0300
committerThomas Gleixner <tglx@linutronix.de>2015-12-29 13:35:34 +0300
commit0105c8d8334fc941e0297ca6708fa57854114c0e (patch)
tree889c0574f02b20a8afb0f673cdae2bdfb260c3de /arch
parent4baf7fe40790c8ffdab54edc8e5b7051cfce3968 (diff)
downloadlinux-0105c8d8334fc941e0297ca6708fa57854114c0e.tar.xz
arch/x86/kernel/ptrace.c: Remove unused arg_offs_table
The related warning from gcc 6.0: arch/x86/kernel/ptrace.c:127:18: warning: ‘arg_offs_table’ defined but not used [-Wunused-const-variable] static const int arg_offs_table[] = { ^~~~~~~~~~~~~~ Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Link: http://lkml.kernel.org/r/1451137798-28701-1-git-send-email-chengang@emindsoft.com.cn Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/ptrace.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 558f50edebca..32e9d9cbb884 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -124,21 +124,6 @@ const char *regs_query_register_name(unsigned int offset)
return NULL;
}
-static const int arg_offs_table[] = {
-#ifdef CONFIG_X86_32
- [0] = offsetof(struct pt_regs, ax),
- [1] = offsetof(struct pt_regs, dx),
- [2] = offsetof(struct pt_regs, cx)
-#else /* CONFIG_X86_64 */
- [0] = offsetof(struct pt_regs, di),
- [1] = offsetof(struct pt_regs, si),
- [2] = offsetof(struct pt_regs, dx),
- [3] = offsetof(struct pt_regs, cx),
- [4] = offsetof(struct pt_regs, r8),
- [5] = offsetof(struct pt_regs, r9)
-#endif
-};
-
/*
* does not yet catch signals sent when the child dies.
* in exit.c or in signal.c.