From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Mon, 17 Jun 2019 23:42:44 +0200 Subject: [LTP] [PATCH v2 3/3] testcase: get rid of compiling errors In-Reply-To: <20190615042048.29839-3-liwang@redhat.com> References: <20190615042048.29839-1-liwang@redhat.com> <20190615042048.29839-3-liwang@redhat.com> Message-ID: <20190617214244.GA19347@x230> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Li, > Signed-off-by: Li Wang Thanks this patchset. Acked-by: Petr Vorel > --- > configure.ac | 1 + > testcases/cve/meltdown.c | 5 +++++ > 2 files changed, 6 insertions(+) > diff --git a/configure.ac b/configure.ac > index 5ecc92781..521f56541 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 \ Just AC_CHECK_HEADERS is sorted alphabetically since a50338cac. But this can be amended during merging. Kind regards, Petr > ]) > AC_CHECK_FUNCS([ \ > diff --git a/testcases/cve/meltdown.c b/testcases/cve/meltdown.c > index 72c9ec907..bc649b893 100644 > --- a/testcases/cve/meltdown.c > +++ b/testcases/cve/meltdown.c > @@ -29,6 +29,7 @@ > #include > #include > +#ifdef HAVE_EMMINTRIN_H > #include > #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(" is not supported"); > +#endif