From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH RFC 3/3] testcase: get rid of compiling errors
Date: Sat, 8 Jun 2019 13:45:50 +0800 [thread overview]
Message-ID: <20190608054550.13744-3-liwang@redhat.com> (raw)
In-Reply-To: <20190608054550.13744-1-liwang@redhat.com>
Signed-off-by: Li Wang <liwang@redhat.com>
---
configure.ac | 1 +
testcases/cve/meltdown.c | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/configure.ac b/configure.ac
index 5a3dc5b62..39b2d6da7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,6 +58,7 @@ AC_CHECK_HEADERS([ \
sys/shm.h \
sys/ustat.h \
sys/xattr.h \
+ emmintrin.h \
])
AC_CHECK_FUNCS([ \
diff --git a/testcases/cve/meltdown.c b/testcases/cve/meltdown.c
index da35213ec..e6e911fcc 100644
--- a/testcases/cve/meltdown.c
+++ b/testcases/cve/meltdown.c
@@ -29,6 +29,7 @@
#include <ctype.h>
#include <sys/utsname.h>
+#ifdef HAVE_EMMINTRIN_H
#include <emmintrin.h>
#include "libtsc.h"
@@ -387,3 +388,7 @@ static struct tst_test test = {
.cleanup = cleanup,
.min_kver = "2.6.32"
};
+
+#else /* HAVE_EMMINTRIN_H */
+ TST_TEST_TCONF("<emmintrin.h> is not supported");
+#endif
--
2.17.0
next prev parent reply other threads:[~2019-06-08 5:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-08 5:45 [LTP] [PATCH RFC 1/3] lib: adding tst_on_arch function in library Li Wang
2019-06-08 5:45 ` [LTP] [PATCH RFC 2/3] max_map_count: taking use of tst_on_arch in testcase Li Wang
2019-06-08 5:45 ` Li Wang [this message]
2019-06-12 15:48 ` [LTP] [PATCH RFC 1/3] lib: adding tst_on_arch function in library Cyril Hrubis
2019-06-13 2:51 ` Li Wang
2019-06-14 12:32 ` Cyril Hrubis
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=20190608054550.13744-3-liwang@redhat.com \
--to=liwang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.