[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230308190423.46491-4-joey.gouly@arm.com>
Date: Wed, 8 Mar 2023 19:04:22 +0000
From: Joey Gouly <joey.gouly@....com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: <nd@....com>, <acme@...hat.com>, <catalin.marinas@....com>,
<izbyshev@...ras.ru>, <joey.gouly@....com>, <peterx@...hat.com>,
<linux-mm@...ck.org>, <linux-kernel@...r.kernel.org>,
Shuah Khan <shuah@...nel.org>,
Kees Cook <keescook@...omium.org>
Subject: [PATCH v1 3/4] kselftest: vm: fix unused variable warning
From: Peter Xu <peterx@...hat.com>
Remove unused variable from the MDWE test.
Fixes: 4cf1fe34fd18 ("kselftest: vm: add tests for memory-deny-write-execute")
Signed-off-by: Peter Xu <peterx@...hat.com>
[joey: added commit message]
Signed-off-by: Joey Gouly <joey.gouly@....com>
Cc: Catalin Marinas <catalin.marinas@....com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
---
tools/testing/selftests/mm/mdwe_test.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/testing/selftests/mm/mdwe_test.c b/tools/testing/selftests/mm/mdwe_test.c
index f466a099f1bf..bc91bef5d254 100644
--- a/tools/testing/selftests/mm/mdwe_test.c
+++ b/tools/testing/selftests/mm/mdwe_test.c
@@ -163,9 +163,8 @@ TEST_F(mdwe, mprotect_WRITE_EXEC)
TEST_F(mdwe, mmap_FIXED)
{
- void *p, *p2;
+ void *p;
- p2 = mmap(NULL, self->size, PROT_READ | PROT_EXEC, self->flags, 0, 0);
self->p = mmap(NULL, self->size, PROT_READ, self->flags, 0, 0);
ASSERT_NE(self->p, MAP_FAILED);
--
2.17.1
Powered by blists - more mailing lists