Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1552348
| From | Shuah Khan <shuahkh@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] selftests: x86 protection_keys fix unused variable compile warnings |
| Date | 2017-01-05 22:50 +0100 |
| Message-ID | <sWo53-eL-7@gated-at.bofh.it> (permalink) |
| References | <sWo53-eL-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] selftests: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
[PATCH] selftests: x86 protection_keys fix unused variable compile warnings Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
[PATCH] tools: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
Re: [PATCH] tools: gpio add .gitignore for generated files Linus Walleij <linus.walleij@linaro.org> - 2017-01-10 10:30 +0100
Re: [PATCH] tools: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-10 15:20 +0100
Re: [PATCH] tools: gpio add .gitignore for generated files Linus Walleij <linus.walleij@linaro.org> - 2017-01-11 16:20 +0100
Re: [PATCH] tools: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-11 17:10 +0100
[PATCH] selftests: x86 protection_keys remove dead code Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
[PATCH] selftests: ipc add missing generated file to .gitignore Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
csiph-web