]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
arch/x86/kernel/ptrace.c: Remove unused arg_offs_table
authorchengang@emindsoft.com.cn <chengang@emindsoft.com.cn>
Sat, 26 Dec 2015 13:49:58 +0000 (21:49 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Dec 2015 10:35:34 +0000 (11:35 +0100)
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>
arch/x86/kernel/ptrace.c

index 558f50edebca8f55a8c33e67bfcd21f9c78037a9..32e9d9cbb884ae10f0f5035c47bafb69f4517f80 100644 (file)
@@ -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.