public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/2] lapi: move pkey.h declarations inside the lapi/ folder
@ 2024-08-05  6:52 Li Wang
  2024-08-05  6:52 ` [LTP] [PATCH v2 2/2] mseal01: handle more possible errnos when pkey_alloc gets fail Li Wang
  2024-08-05 13:55 ` [LTP] [PATCH v2 1/2] lapi: move pkey.h declarations inside the lapi/ folder Petr Vorel
  0 siblings, 2 replies; 11+ messages in thread
From: Li Wang @ 2024-08-05  6:52 UTC (permalink / raw)
  To: ltp

Signed-off-by: Li Wang <liwang@redhat.com>
---
 .../kernel/syscalls/pkeys => include/lapi}/pkey.h      | 10 +++++-----
 testcases/kernel/syscalls/pkeys/pkey01.c               |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
 rename {testcases/kernel/syscalls/pkeys => include/lapi}/pkey.h (88%)

diff --git a/testcases/kernel/syscalls/pkeys/pkey.h b/include/lapi/pkey.h
similarity index 88%
rename from testcases/kernel/syscalls/pkeys/pkey.h
rename to include/lapi/pkey.h
index 6e32326b6..e0dc20dce 100644
--- a/testcases/kernel/syscalls/pkeys/pkey.h
+++ b/include/lapi/pkey.h
@@ -1,11 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
- * Copyright (c) 2019 Red Hat, Inc.
- * Copyright (c) Linux Test Project, 2019
+ * Copyright (c) 2019-2024 Red Hat, Inc.
+ * Copyright (c) Linux Test Project, 2019-2024
  */
 
-#ifndef PKEYS_H
-#define PKEYS_H
+#ifndef PKEYS_H__
+#define PKEYS_H__
 
 #include "tst_test.h"
 #include "lapi/syscalls.h"
@@ -53,4 +53,4 @@ static inline void check_pkey_support(void)
 	ltp_pkey_free(pkey);
 }
 
-#endif /* PKEYS_H */
+#endif /* PKEYS_H__ */
diff --git a/testcases/kernel/syscalls/pkeys/pkey01.c b/testcases/kernel/syscalls/pkeys/pkey01.c
index 0159822e1..a6a739668 100644
--- a/testcases/kernel/syscalls/pkeys/pkey01.c
+++ b/testcases/kernel/syscalls/pkeys/pkey01.c
@@ -29,7 +29,7 @@
 #include <sys/mman.h>
 #include <sys/wait.h>
 
-#include "pkey.h"
+#include "lapi/pkey.h"
 
 #define TEST_FILE "pkey_testfile"
 #define STR "abcdefghijklmnopqrstuvwxyz12345\n"
-- 
2.45.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-08-06  9:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05  6:52 [LTP] [PATCH v2 1/2] lapi: move pkey.h declarations inside the lapi/ folder Li Wang
2024-08-05  6:52 ` [LTP] [PATCH v2 2/2] mseal01: handle more possible errnos when pkey_alloc gets fail Li Wang
2024-08-05 13:59   ` Petr Vorel
2024-08-06  1:30     ` Li Wang
2024-08-06  2:31       ` [LTP] [PATCH] pkey: remove the ltp_ prefix from pkey functions Li Wang
2024-08-06  6:19         ` Petr Vorel
2024-08-06  7:37           ` Li Wang
2024-08-06  9:04             ` Li Wang
2024-08-06  9:21               ` Petr Vorel
2024-08-05 13:55 ` [LTP] [PATCH v2 1/2] lapi: move pkey.h declarations inside the lapi/ folder Petr Vorel
2024-08-06  0:58   ` Li Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox