From: David Hildenbrand <david@redhat.com>
To: ltp@lists.linux.it
Cc: David Hildenbrand <david@redhat.com>
Subject: [LTP] [PATCH v1 3/3] syscalls/userfaultfd01: Remove compile-time TCONF handling
Date: Mon, 28 Nov 2022 12:18:33 +0100 [thread overview]
Message-ID: <20221128111833.98937-4-david@redhat.com> (raw)
In-Reply-To: <20221128111833.98937-1-david@redhat.com>
Let's remove the conditional compile-time TCONF handling by including
include/lapi/userfaultfd.h .
Signed-off-by: David Hildenbrand <david@redhat.com>
---
testcases/kernel/syscalls/userfaultfd/userfaultfd01.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c b/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c
index 2dae2ec78..c2c684d2b 100644
--- a/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c
+++ b/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c
@@ -12,13 +12,11 @@
#include "config.h"
#include "tst_test.h"
-#ifdef HAVE_LINUX_USERFAULTFD_H
-#include <linux/userfaultfd.h>
#include <poll.h>
#include "tst_safe_macros.h"
#include "tst_safe_pthread.h"
-#include "lapi/syscalls.h"
+#include "lapi/userfaultfd.h"
static int page_size;
static char *page;
@@ -122,7 +120,3 @@ static struct tst_test test = {
.test_all = run,
.min_kver = "4.3",
};
-
-#else
- TST_TEST_TCONF("This system does not provide userfaultfd support");
-#endif
--
2.38.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-11-28 11:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-28 11:18 [LTP] [PATCH v1 0/3] userfaultfd: Fix and remove compile-time TCONF handling David Hildenbrand
2022-11-28 11:18 ` [LTP] [PATCH v1 1/3] lapi/userfaultfd.h: Preparation for removing compile-time TCONF handling from userfaultfd testcases David Hildenbrand
2022-11-28 11:18 ` [LTP] [PATCH v1 2/3] security/dirtyc0w_shmem: Fix compile-time absence of UFFD_FEATURE_MINOR_SHMEM David Hildenbrand
2022-11-28 11:18 ` David Hildenbrand [this message]
2022-11-28 11:57 ` [LTP] [PATCH v1 0/3] userfaultfd: Fix and remove compile-time TCONF handling Petr Vorel
2022-11-28 12:29 ` Martin Doucha
2022-11-28 15:44 ` David Hildenbrand
2022-11-28 18:42 ` Petr Vorel
2022-11-29 8:29 ` Petr Vorel
2022-11-29 8:46 ` David Hildenbrand
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=20221128111833.98937-4-david@redhat.com \
--to=david@redhat.com \
--cc=ltp@lists.linux.it \
/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