From: Shuah Khan <shuahkh@osg.samsung.com>
To: shuah@kernel.org, dave.hansen@linux.intel.com, tglx@linutronix.de
Cc: Shuah Khan <shuahkh@osg.samsung.com>,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] selftests: x86 protection_keys fix unused variable compile warnings
Date: Thu, 5 Jan 2017 14:32:34 -0700 [thread overview]
Message-ID: <20170105213236.15562-3-shuahkh@osg.samsung.com> (raw)
In-Reply-To: <20170105213236.15562-1-shuahkh@osg.samsung.com>
Fix unused variable compile warnings in protection_keys.c
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
tools/testing/selftests/x86/protection_keys.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/tools/testing/selftests/x86/protection_keys.c b/tools/testing/selftests/x86/protection_keys.c
index bdd58c7..70402cd 100644
--- a/tools/testing/selftests/x86/protection_keys.c
+++ b/tools/testing/selftests/x86/protection_keys.c
@@ -812,8 +812,6 @@ void setup_hugetlbfs(void)
{
int err;
int fd;
- int validated_nr_pages;
- int i;
char buf[] = "123";
if (geteuid() != 0) {
@@ -1133,7 +1131,6 @@ void test_pkey_syscalls_on_non_allocated_pkey(int *ptr, u16 pkey)
void test_pkey_syscalls_bad_args(int *ptr, u16 pkey)
{
int err;
- int bad_flag = (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE) + 1;
int bad_pkey = NR_PKEYS+99;
/* not enforced when pkey_get() is not a syscall
@@ -1149,8 +1146,6 @@ void test_pkey_syscalls_bad_args(int *ptr, u16 pkey)
/* Assumes that all pkeys other than 'pkey' are unallocated */
void test_pkey_alloc_exhaust(int *ptr, u16 pkey)
{
- unsigned long flags;
- unsigned long init_val;
int err;
int allocated_pkeys[NR_PKEYS] = {0};
int nr_allocated_pkeys = 0;
--
2.7.4
next prev parent reply other threads:[~2017-01-05 21:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-05 21:32 [PATCH] selftests: gpio add .gitignore for generated files Shuah Khan
2017-01-05 21:32 ` [PATCH] selftests: ipc add missing generated file to .gitignore Shuah Khan
2017-01-05 21:32 ` Shuah Khan [this message]
2017-01-05 21:32 ` [PATCH] selftests: x86 protection_keys remove dead code Shuah Khan
2017-01-05 21:32 ` [PATCH] tools: gpio add .gitignore for generated files Shuah Khan
2017-01-10 9:29 ` Linus Walleij
2017-01-10 14:07 ` Shuah Khan
2017-01-11 15:19 ` Linus Walleij
2017-01-11 16:02 ` Shuah Khan
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=20170105213236.15562-3-shuahkh@osg.samsung.com \
--to=shuahkh@osg.samsung.com \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@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;
as well as URLs for NNTP newsgroup(s).