[PATCH v3 8/8] selftests/mm: pkey-helpers: Remove duplicate __maybe_unused
Muhammad Usama Anjum
usama.anjum at collabora.com
Fri Aug 22 01:21:05 PDT 2025
__maybe_unused is now defined in the kselftest.h. Remove from this file
as its not required.
Signed-off-by: Muhammad Usama Anjum <usama.anjum at collabora.com>
---
Changes since v2:
- Introduced in v2
---
tools/testing/selftests/mm/pkey-helpers.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/testing/selftests/mm/pkey-helpers.h b/tools/testing/selftests/mm/pkey-helpers.h
index ea404f80e6cb9..fa15f006fa68c 100644
--- a/tools/testing/selftests/mm/pkey-helpers.h
+++ b/tools/testing/selftests/mm/pkey-helpers.h
@@ -84,9 +84,6 @@ extern void abort_hooks(void);
#ifndef noinline
# define noinline __attribute__((noinline))
#endif
-#ifndef __maybe_unused
-# define __maybe_unused __attribute__((__unused__))
-#endif
int sys_pkey_alloc(unsigned long flags, unsigned long init_val);
int sys_pkey_free(unsigned long pkey);
--
2.47.2
More information about the linux-riscv
mailing list