From: "tip-bot for chengang@emindsoft.com.cn" <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org,
gang.chen.5i5j@gmail.com, mingo@kernel.org,
chengang@emindsoft.com.cn, hpa@zytor.com
Subject: [tip:x86/cleanups] arch/x86/kernel/ptrace.c: Remove unused arg_offs_table
Date: Tue, 29 Dec 2015 02:39:44 -0800 [thread overview]
Message-ID: <tip-0105c8d8334fc941e0297ca6708fa57854114c0e@git.kernel.org> (raw)
In-Reply-To: <1451137798-28701-1-git-send-email-chengang@emindsoft.com.cn>
Commit-ID: 0105c8d8334fc941e0297ca6708fa57854114c0e
Gitweb: http://git.kernel.org/tip/0105c8d8334fc941e0297ca6708fa57854114c0e
Author: chengang@emindsoft.com.cn <chengang@emindsoft.com.cn>
AuthorDate: Sat, 26 Dec 2015 21:49:58 +0800
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 29 Dec 2015 11:35:34 +0100
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>
---
arch/x86/kernel/ptrace.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 558f50e..32e9d9c 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.
prev parent reply other threads:[~2015-12-29 10:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-26 13:49 [PATCH] arch/x86/kernel/ptrace.c: Remove redundant arg_offs_table chengang
2015-12-29 10:39 ` tip-bot for chengang@emindsoft.com.cn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-0105c8d8334fc941e0297ca6708fa57854114c0e@git.kernel.org \
--to=tipbot@zytor.com \
--cc=chengang@emindsoft.com.cn \
--cc=gang.chen.5i5j@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox