m4: Fix warnings, remove old checks
v2 cover m4: Fix warnings, remove old checks
Hi,
changes v1->v2:
* new commits to remove ltp-scanner and various checks.
There are still some AC_LINK_IFELSE left and some check could be for sure fixed (e.g. LIBNUMA_API_VERSION 2 is old enough to remove the check), but let§s postpone it to later.
I also wanted to further clean lib/cloner.c - I wanted to remove ltp_clone_ and __clone2 for ia64 [1]. ia64 is EOL [2], but hppa is still supported [3]. Maybe I should ask James Bottomley and [email protected] whether they even use LTP for testing.
Tested:
https://github.com/pevik/ltp/actions/runs/1750787899
(opensuse/leap has installation problem, not related to this issue)
Kind regards,
Petr
[1] https://github.com/pevik/ltp/commit/e7da898e16ad592f6bc311c3bad6e0c82977fec4
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=228345bf98cd78f91d007478a51f9a471489e44a
[3] https://parisc.wiki.kernel.org/index.php/Main_Page#PA-RISC_NEWS
Petr Vorel (7):
pan: Remove ltp-scanner
m4: Remove check for io_set_eventfd
m4: Remove check for struct perf_event_attr
realtime/m4: Simplify exp10 check
m4: Remove check for MREMAP_FIXED
m4: Remove check for clone() supports 7 args
m4: Fix warnings
.gitignore | 1 - INSTALL | 2 - configure.ac | 28 +- lib/cloner.c | 10 - m4/ltp-clone7args.m4 | 17 - m4/ltp-eventfd.m4 | 11 +- m4/ltp-kernel_devel.m4 | 6 +- m4/ltp-mremap_fixed.m4 | 12 - m4/ltp-perf_event_open.m4 | 16 - pan/Makefile | 8 - pan/debug.c | 84 --- pan/debug.h | 67 --- pan/ltp-scanner.c | 175 ------- pan/reporter.c | 270 ---------- pan/reporter.h | 80 --- pan/scan.h | 42 -- pan/scan.l | 456 ----------------- pan/symbol.c | 467 ----------------- pan/symbol.h | 104 ---- pan/tag_report.c | 478 ------------------ testcases/cve/cve-2015-3290.c | 7 +- testcases/kernel/mem/thp/thp02.c | 5 - testcases/kernel/syscalls/eventfd/eventfd01.c | 18 +- testcases/kernel/syscalls/mremap/mremap05.c | 11 - .../perf_event_open/perf_event_open01.c | 16 +- .../perf_event_open/perf_event_open02.c | 8 +- .../perf_event_open/perf_event_open03.c | 7 +- testcases/realtime/configure.ac | 4 +- testcases/realtime/m4/check.m4 | 6 +- testcases/realtime/m4/ltp-exp10.m4 | 37 -- 30 files changed, 30 insertions(+), 2423 deletions(-) delete mode 100644 m4/ltp-clone7args.m4 delete mode 100644 m4/ltp-mremap_fixed.m4 delete mode 100644 m4/ltp-perf_event_open.m4 delete mode 100644 pan/debug.c delete mode 100644 pan/debug.h delete mode 100644 pan/ltp-scanner.c delete mode 100644 pan/reporter.c delete mode 100644 pan/reporter.h delete mode 100644 pan/scan.h delete mode 100644 pan/scan.l delete mode 100644 pan/symbol.c delete mode 100644 pan/symbol.h delete mode 100644 pan/tag_report.c delete mode 100644 testcases/realtime/m4/ltp-exp10.m4
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
RFC PATCH v2 1/7 pan: Remove ltp-scanner
We believe that nobody uses it.
---
New in v2
.gitignore | 1 - INSTALL | 2 - configure.ac | 1 - pan/Makefile | 8 - pan/debug.c | 84 -------- pan/debug.h | 67 ------- pan/ltp-scanner.c | 175 ----------------- pan/reporter.c | 270 -------------------------- pan/reporter.h | 80 -------- pan/scan.h | 42 ---- pan/scan.l | 456 ------------------------------------------- pan/symbol.c | 467 -------------------------------------------- pan/symbol.h | 104 ---------- pan/tag_report.c | 478 ---------------------------------------------- 14 files changed, 2235 deletions(-) delete mode 100644 pan/debug.c delete mode 100644 pan/debug.h delete mode 100644 pan/ltp-scanner.c delete mode 100644 pan/reporter.c delete mode 100644 pan/reporter.h delete mode 100644 pan/scan.h delete mode 100644 pan/scan.l delete mode 100644 pan/symbol.c delete mode 100644 pan/symbol.h delete mode 100644 pan/tag_report.c
.gitignore +0 -1
@@ -45,7 +45,6 @@ autom4te.cache /lib/ltp.pc /pan/ltp-bump /pan/ltp-pan -/pan/ltp-scanner cscope.* ncscope.*
INSTALL +0 -2
@@ -27,8 +27,6 @@ configure file). pkgconf is recommended also for compilation from tarball as it does automatic detection of some library support. -GNU Bison / Berkeley Yacc is required for ltp-scanner. - Configuration -------------
configure.ac +0 -1
@@ -24,7 +24,6 @@ AC_PROG_CC # 2.62. AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)]) AC_PROG_AR -AC_PROG_LEX AC_PROG_RANLIB AC_DEFUN([AC_PROG_STRIP], [AC_CHECK_TOOL(STRIP, strip, :)]) AC_PROG_STRIP
pan/Makefile +0 -8
@@ -39,18 +39,10 @@ INSTALL_DIR := bin MAKE_TARGETS := ltp-bump ltp-pan -ifeq ($(strip $(LEXLIB)),) -$(warning ltp-scanner will not be built because a working copy of lex was not found) -else -MAKE_TARGETS += ltp-scanner -endif - ltp-bump: ltp-bump.o zoolib.o ltp-pan: ltp-pan.o zoolib.o splitstr.o -ltp-scanner: scan.o ltp-scanner.o reporter.o tag_report.o symbol.o splitstr.o debug.o - # flex does some whacky junk when it generates files on the fly, so let's make # sure gcc doesn't get lost... vpath %.c $(abs_srcdir):$(abs_builddir)))
pan/debug.c deleted +0 -84
84 lines not on this page · raw message
pan/debug.h deleted +0 -67
67 lines not on this page · raw message
pan/ltp-scanner.c deleted +0 -175
175 lines not on this page · raw message
pan/reporter.c deleted +0 -270
270 lines not on this page · raw message
pan/reporter.h deleted +0 -80
80 lines not on this page · raw message
pan/scan.h deleted +0 -42
42 lines not on this page · raw message
pan/scan.l deleted +0 -456
456 lines not on this page · raw message
pan/symbol.c deleted +0 -467
467 lines not on this page · raw message
pan/symbol.h deleted +0 -104
104 lines not on this page · raw message
pan/tag_report.c deleted +0 -478
478 lines not on this page · raw message
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 1/7] pan: Remove ltp-scanner
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 1/7] pan: Remove ltp-scanner
In reply to Petr VorelQuoted 2 lines · Petr Vorel
We believe that nobody uses it.
There were some fixes to it years ago (I was surprised to find one was mine), but I can't recall last time I used it so I'm OK with dropping it.
Quoted 32 lines
Suggested-by Cyril Hrubis <[email protected]>Signed-off-by Petr Vorel <[email protected]>---
New in v2.gitignore | 1 - INSTALL | 2 - configure.ac | 1 - pan/Makefile | 8 - pan/debug.c | 84 -------- pan/debug.h | 67 ------- pan/ltp-scanner.c | 175 ----------------- pan/reporter.c | 270 -------------------------- pan/reporter.h | 80 -------- pan/scan.h | 42 ---- pan/scan.l | 456 ------------------------------------------- pan/symbol.c | 467 -------------------------------------------- pan/symbol.h | 104 ---------- pan/tag_report.c | 478 ---------------------------------------------- 14 files changed, 2235 deletions(-) delete mode 100644 pan/debug.c delete mode 100644 pan/debug.h delete mode 100644 pan/ltp-scanner.c delete mode 100644 pan/reporter.c delete mode 100644 pan/reporter.h delete mode 100644 pan/scan.h delete mode 100644 pan/scan.l delete mode 100644 pan/symbol.c delete mode 100644 pan/symbol.h delete mode 100644 pan/tag_report.c
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
RFC PATCH v2 2/7 m4: Remove check for io_set_eventfd
In reply to Petr VorelIt was added in Jan 2008 in libaio-0.3.108, even Centos 6 has 0.3.109, SLES11-SP4 and Debian stretch (oldoldstable) have 0.3.110.
At least CentOS 6 and SLES11-SP4 don't event compiles LTP at least 2 releases back.
---
New in v2
m4/ltp-eventfd.m4 | 11 +---------- testcases/kernel/syscalls/eventfd/eventfd01.c | 18 +----------------- 2 files changed, 2 insertions(+), 27 deletions(-)
m4/ltp-eventfd.m4 +1 -10
@@ -1,6 +1,6 @@ dnl SPDX-License-Identifier: GPL-2.0-or-later dnl Copyright (c) Red Hat Inc., 2008 -dnl Copyright (c) 2017 Petr Vorel <[email protected]> +dnl Copyright (c) 2017-2022 Petr Vorel <[email protected]> dnl Author: Masatake YAMATO <[email protected]> AC_DEFUN([LTP_CHECK_SYSCALL_EVENTFD], [
@@ -10,14 +10,5 @@ AC_DEFUN([LTP_CHECK_SYSCALL_EVENTFD], [ if test "x$have_libaio" = "xyes" -a "x$have_aio" = "xyes"; then AC_DEFINE(HAVE_LIBAIO, 1, [Define to 1 if you have libaio and it's headers installed.]) AC_SUBST(AIO_LIBS, "-laio") - - AC_MSG_CHECKING([io_set_eventfd is defined in aio library or aio header]) - AC_TRY_LINK([#include <stdio.h> - #include <libaio.h> - ], - [io_set_eventfd(NULL, 0); return 0;], - [AC_DEFINE(HAVE_IO_SET_EVENTFD, 1, [Define to 1 if you have `io_set_eventfd' function.]) - AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no)]) fi ])
testcases/kernel/syscalls/eventfd/eventfd01.c +1 -17
@@ -1,5 +1,6 @@/* * Copyright (c) 2008 Vijay Kumar B. <[email protected]> +* Copyright (c) Linux Test Project, 2008-2022 * * Based on testcases/kernel/syscalls/waitpid/waitpid01.c * Original copyright message:
@@ -472,7 +473,6 @@ static void child_inherit_test(int fd) } } -#ifdef HAVE_IO_SET_EVENTFD /* * Test whether counter overflow is detected and handled correctly. *
@@ -648,22 +648,6 @@ static void overflow_read_test(int evfd) }cleanup_overflow (fd, ctx); } -#else -static void overflow_select_test (int evfd) -{ -tst_resm (TCONF ,"eventfd support is not available in AIO subsystem" ); -} - -static void overflow_poll_test (int evfd) -{ -tst_resm (TCONF ,"eventfd support is not available in AIO subsystem" ); -} - -static void overflow_read_test (int evfd) -{ -tst_resm (TCONF ,"eventfd support is not available in AIO subsystem" ); -} -#endif int main (int argc,char **argv) {
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 2/7] m4: Remove check for io_set_eventfd
Hi!
Looks good.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
RFC PATCH v2 3/7 m4: Remove check for struct perf_event_attr
In reply to Petr VorelIt was added by Ingo Molnar in 2009 to perf_event_open01.c after his change to in v2.6.32-rc1 cdd6c482c9ff ("perf: Do the big rename:
Performance Counters -> Performance Events"), where he renamed struct perf_counter_attr to struct perf_event_attr and rename header where defined from include/linux/perf_counter.h to include/linux/perf_event.h.
It was safe to remove the check long time ago. Not checking for linux/perf_event.h because although we check for some kernel headers presence, we expect kernel headers to be installed.
---
New in v2
configure.ac | 1 - m4/ltp-perf_event_open.m4 | 16 ---------------- testcases/cve/cve-2015-3290.c | 7 ++++--- .../syscalls/perf_event_open/perf_event_open01.c | 16 ++-------------- .../syscalls/perf_event_open/perf_event_open02.c | 8 +------- .../syscalls/perf_event_open/perf_event_open03.c | 7 +------ 6 files changed, 8 insertions(+), 47 deletions(-) delete mode 100644 m4/ltp-perf_event_open.m4
configure.ac +0 -1
@@ -376,7 +376,6 @@ fi AC_DEFINE_UNQUOTED(NUMA_ERROR_MSG, ["$numa_error_msg"], [Error message when no NUMA support]) -LTP_CHECK_SYSCALL_PERF_EVENT_OPEN LTP_CHECK_SYSCALL_SIGNALFD LTP_CHECK_SYSCALL_UTIMENSAT LTP_CHECK_TASKSTATS
m4/ltp-perf_event_open.m4 deleted +0 -16
@@ -1,16 +0,0 @@ -dnl SPDX-License-Identifier: GPL-2.0-or-later -dnl Copyright (c) 2014 Fujitsu Ltd. -dnl Copyright (c) 2014 Cyril Hrubis <[email protected]> -dnl Author: Xiaoguang Wang <[email protected]> - -AC_DEFUN([LTP_CHECK_SYSCALL_PERF_EVENT_OPEN],[ -AH_TEMPLATE(HAVE_PERF_EVENT_ATTR, -[Define to 1 if you have struct perf_event_attr]) -AC_MSG_CHECKING([for perf_event_attr in linux/perf_event.h]) -AC_TRY_COMPILE([#include <unistd.h> - #include <linux/perf_event.h>], - [ - struct perf_event_attr pe; - ], - AC_DEFINE(HAVE_PERF_EVENT_ATTR) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) -])
testcases/cve/cve-2015-3290.c +4 -3
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Pavel Boldin <[email protected]> +* Copyright (c) 2018-2022 Linux Test Project */ /*
@@ -117,7 +118,7 @@ perhaps unsurprisingly.)#include "tst_test.h" #include "tst_timer.h" -#if HAVE_PERF_EVENT_ATTR && (defined(__x86_64__) || defined(__i386__)) +#if defined(__x86_64__) || defined(__i386__)#include <stdlib.h> #include <stdio.h>
@@ -476,8 +477,8 @@ static struct tst_test test = { } }; -#else /* HAVE_PERF_EVENT_ATTR && (defined(__x86_64__) || defined(__i386__)) */ +#else /* defined(__x86_64__) || defined(__i386__) */ -TST_TEST_TCONF ("no perf_event_attr or not (i386 or x86_64)" ); +TST_TEST_TCONF ("not (i386 or x86_64)" );#endif
testcases/kernel/syscalls/perf_event_open/perf_event_open01.c +2 -14
@@ -1,6 +1,7 @@/******************************************************************************/ /* */ /* Ingo Molnar <[email protected]>, 2009 */ +/* Copyright (c) Linux Test Project, 2014-2022 */ /* */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */
@@ -38,9 +39,7 @@#include <fcntl.h> #include <stdint.h> #include "config.h" -#if HAVE_PERF_EVENT_ATTR -# include <linux/perf_event.h> -#endif +#include <linux/perf_event.h> #include "test.h" #include "lapi/syscalls.h"
@@ -48,7 +47,6 @@char *TCID ="perf_event_open01" ; -#if HAVE_PERF_EVENT_ATTR static void setup (void );static void cleanup (void );
@@ -198,13 +196,3 @@ static void verify(struct test_case_t *tc)static void cleanup (void ) { } - -#else - -int main (void ) -{ -tst_brkm (TCONF ,NULL ,"This system doesn't have " -"header file:<linux/perf_event.h> or " -"no struct perf_event_attr defined" ); -} -#endif
testcases/kernel/syscalls/perf_event_open/perf_event_open02.c +1 -7
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2009 Paul Mackerras <[email protected]> -* Copyright (c) 2019 Linux Test Project +* Copyright (c) 2014-2022 Linux Test Project */ /* * Here's a little test program that checks whether software counters
@@ -45,7 +45,6 @@#include "lapi/cpuset.h" #include "lapi/syscalls.h" -#if HAVE_PERF_EVENT_ATTR #include "perf_event_open.h" #define MAX_CTRS 1000
@@ -336,8 +335,3 @@ static struct tst_test test = { .test_all = verify, .needs_root = 1, }; - -#else /* HAVE_PERF_EVENT_ATTR */ -TST_TEST_TCONF ("This system doesn't have <linux/perf_event.h> or " -"struct perf_event_attr is not defined." ); -#endif
testcases/kernel/syscalls/perf_event_open/perf_event_open03.c +1 -6
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2021 SUSE LLC <[email protected]> +* Copyright (c) 2022 Linux Test Project * * CVE-2020-25704 *
@@ -17,7 +18,6 @@#include "tst_test.h" #include "lapi/syscalls.h" -#if HAVE_PERF_EVENT_ATTR #include "perf_event_open.h" #define INTEL_PT_PATH "/sys/bus/event_source/devices/intel_pt/type"
@@ -77,8 +77,3 @@ static struct tst_test test = { {} } }; - -#else /* HAVE_PERF_EVENT_ATTR */ -TST_TEST_TCONF ("This system doesn't have <linux/perf_event.h> or " -"struct perf_event_attr is not defined." ); -#endif
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 3/7] m4: Remove check for struct perf_event_attr
Hi!
Looks good as well.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
RFC PATCH v2 4/7 realtime/m4: Simplify exp10 check
In reply to Petr VorelYes, uclibc-ng still haven't defined exp10, thus still needed.
---
New in v2
testcases/realtime/configure.ac | 4 ++-- testcases/realtime/m4/ltp-exp10.m4 | 37 ------------------------------ 2 files changed, 2 insertions(+), 39 deletions(-) delete mode 100644 testcases/realtime/m4/ltp-exp10.m4
testcases/realtime/configure.ac +2 -2
@@ -35,8 +35,8 @@ else AC_MSG_RESULT(no) fi -REALTIME_CHECK_PRIO_INHERIT +AC_CHECK_LIB([m], [exp10], [AC_DEFINE([HAVE_EXP10], 1, [Define to 1 if you have exp10 function])]) -LTP_CHECK_EXP10 +REALTIME_CHECK_PRIO_INHERIT AC_OUTPUT
testcases/realtime/m4/ltp-exp10.m4 deleted +0 -37
@@ -1,37 +0,0 @@ -dnl -dnl Copyright (c) Linux Test Project, 2014 -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -dnl the GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -dnl - -dnl -dnl LTP_CHECK_EXP10 -dnl --------------- -dnl -AC_DEFUN([LTP_CHECK_EXP10],[ -AH_TEMPLATE(HAVE_EXP10, -[Define to 1 if you have 'exp10' function.]) -AC_MSG_CHECKING([for exp10]) -backup_ldlibs="$LIBS" -LIBS+=" -lm" -AC_TRY_LINK([#define _GNU_SOURCE - #include <math.h>], - [ - volatile float val; - exp10(val); - ], - AC_DEFINE(HAVE_EXP10) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) -LIBS="$backup_ldlibs" -])
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 4/7] realtime/m4: Simplify exp10 check
Hi!
Looks good as well.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 4/7] realtime/m4: Simplify exp10 check
In reply to Petr VorelQuoted 1 line
Yes, uclibc-ng still haven't defined exp10, thus still needed.
To correct myself, it has been added 5 years ago, in v1.0.27 (2017):
https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/commit/?id=ea38f4d89c9698895b1cf53a5946429dc1d8bbaa.
And even before there was implementation from glibc in v1.0.12 (2016):
https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/commit/?id=12a85731dc5fda3bc01ab19c82678b3bf122d794.
It'd be nice to see if there are toolchains which still use v1.0.12.
Kind regards,
Petr
Quoted 1 line
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
RFC PATCH v2 5/7 m4: Remove check for MREMAP_FIXED
In reply to Petr Vorelglibc and uclibc added it in 2005, musl at 2011.
---
New in v2
configure.ac | 1 - m4/ltp-mremap_fixed.m4 | 12 ------------ testcases/kernel/mem/thp/thp02.c | 5 ----- testcases/kernel/syscalls/mremap/mremap05.c | 11 ----------- 4 files changed, 29 deletions(-) delete mode 100644 m4/ltp-mremap_fixed.m4
configure.ac +0 -1
@@ -360,7 +360,6 @@ LTP_CHECK_KEYUTILS_SUPPORT LTP_CHECK_LIBMNL LTP_CHECK_LINUX_PTRACE LTP_CHECK_LINUXRANDOM -LTP_CHECK_MREMAP_FIXED LTP_CHECK_NOMMU_LINUX LTP_CHECK_SELINUX LTP_CHECK_SYNC_ADD_AND_FETCH
m4/ltp-mremap_fixed.m4 deleted +0 -12
@@ -1,12 +0,0 @@ -dnl SPDX-License-Identifier: GPL-2.0-or-later -dnl Copyright (c) Linux Test Project, 2012 -dnl Author: Cyril Hrubis <[email protected]> - -AC_DEFUN([LTP_CHECK_MREMAP_FIXED],[ -AH_TEMPLATE(HAVE_MREMAP_FIXED, -[Define to 1 if you have MREMAP_FIXED in <sys/mman.h>.]) -AC_MSG_CHECKING([for MREMAP_FIXED in <sys/mman.h>]) -AC_TRY_COMPILE([#define _GNU_SOURCE - #include <sys/mman.h>], [int flags = MREMAP_FIXED;], - AC_DEFINE(HAVE_MREMAP_FIXED) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) -])
testcases/kernel/mem/thp/thp02.c +0 -5
@@ -40,7 +40,6 @@#include <unistd.h> #include "mem.h" -#ifdef HAVE_MREMAP_FIXED static int ps;static long hps, size;
@@ -119,7 +118,3 @@ static struct tst_test test = { .test_all = do_mremap, .forks_child = 1, }; - -#else -TST_TEST_TCONF ("MREMAP_FIXED not present in <sys/mman.h>" ); -#endif /* HAVE_MREMAP_FIXED */
testcases/kernel/syscalls/mremap/mremap05.c +0 -11
@@ -45,8 +45,6 @@char *TCID ="mremap05" ; -#ifdef HAVE_MREMAP_FIXED -struct test_case_t {char *old_address;char *new_address;
@@ -239,12 +237,3 @@ static void setup(void)static void cleanup (void ) { } - -#else - -int main (void ) -{ -tst_brkm (TCONF ,NULL ,"MREMAP_FIXED not present in <sys/mman.h>" ); -} - -#endif /* HAVE_MREMAP_FIXED */
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 5/7] m4: Remove check for MREMAP_FIXED
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
RFC PATCH v2 6/7 m4: Remove check for clone() supports 7 args
In reply to Petr VorelFix from 1db62666ce (2014) for SLES10, RHEL4. Save to remove now.
NOTE: support for 7 args was missing in kernel 2.4 and earlier.
---
New in v2
configure.ac | 1 - lib/cloner.c | 10 ---------- m4/ltp-clone7args.m4 | 17 ----------------- 3 files changed, 28 deletions(-) delete mode 100644 m4/ltp-clone7args.m4
configure.ac +0 -1
@@ -352,7 +352,6 @@ LTP_CHECK_ATOMIC_MEMORY_MODEL LTP_CHECK_BUILTIN_CLEAR_CACHE LTP_CHECK_CAPABILITY_SUPPORT LTP_CHECK_CC_WARN_OLDSTYLE -LTP_CHECK_CLONE_SUPPORTS_7_ARGS LTP_CHECK_CRYPTO LTP_CHECK_FORTIFY_SOURCE LTP_CHECK_KERNEL_DEVEL
lib/cloner.c +0 -10
@@ -50,11 +50,6 @@ extern int __clone2(int (*fn) (void *arg), void *child_stack_base, pid_t *parent_tid, void *tls, pid_t *child_tid);#endif -#ifndef CLONE_SUPPORTS_7_ARGS -# define clone (fn, stack, flags, arg, ptid, tls, ctid) \ - clone(fn, stack, flags, arg) -#endif -/* * ltp_clone: wrapper for clone to hide the architecture dependencies. * 1. hppa takes bottom of stack and no stacksize (stack grows up)
@@ -109,12 +104,7 @@ int ltp_clone7(unsigned long flags, int (*fn)(void *arg), void *arg, ctid = va_arg(arg_clone, pid_t *);va_end (arg_clone); -#ifdef CLONE_SUPPORTS_7_ARGS return ltp_clone_ (flags, fn, arg, stack_size, stack, ptid, tls, ctid); -#else - errno =ENOSYS ; -return -1 ; -#endif }/*
m4/ltp-clone7args.m4 deleted +0 -17
@@ -1,17 +0,0 @@ -dnl SPDX-License-Identifier: GPL-2.0-or-later -dnl Copyright (c) Linux Test Project, 2014 - -AC_DEFUN([LTP_CHECK_CLONE_SUPPORTS_7_ARGS],[ -AH_TEMPLATE(CLONE_SUPPORTS_7_ARGS, -[Define to 1 if clone() supports 7 arguments.]) -AC_MSG_CHECKING([if clone() supports 7 args]) -AC_TRY_LINK([#define _GNU_SOURCE - #include <sched.h> - #include <stdlib.h>], - [ - #ifndef __ia64__ - clone(NULL, NULL, 0, NULL, NULL, NULL, NULL); - #endif - ], - AC_DEFINE(CLONE_SUPPORTS_7_ARGS) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) -])
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 6/7] m4: Remove check for clone() supports 7 args
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
RFC PATCH v2 7/7 m4: Fix warnings
In reply to Petr Vorelfrom autoconf 2.71:
* s/AC_HELP_STRING/AS_HELP_STRING/
Similar replace was done in autoconf commit 5958ce17 ("* doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.") from 2.58.
* s/AC_TRY_LINK/AC_COMPILE_IFELSE([AC_LANG_PROGRAM/
Similar replace was done in autoconf commit ede91cff ("Modernize AC_EXEEXT and AC_OBJEXT. Now work with other languages than C and C++.") from 2.50.
Due previous keep requiring 2.61. Tested on 2.63 (SLES 11 and CentOS 6 both don't even compile as unsupported, thus we could bump version to 2.63).
---
New in v2
configure.ac | 24 ++++++++++++------------ m4/ltp-kernel_devel.m4 | 6 +++--- testcases/realtime/m4/check.m4 | 6 +++--- 3 files changed, 18 insertions(+), 18 deletions(-)
configure.ac +12 -12
@@ -219,7 +219,7 @@ AC_CHECK_TYPES([struct __kernel_old_timeval, struct __kernel_old_timespec, struc # Bash AC_ARG_WITH([bash], - [AC_HELP_STRING([--with-bash], + [AS_HELP_STRING([--with-bash], [have the Bourne Again Shell interpreter])], [with_bash=$withval], [with_bash=no]
@@ -232,24 +232,24 @@ fi # metadata AC_ARG_ENABLE([metadata], - [AC_HELP_STRING([--disable-metadata], + [AS_HELP_STRING([--disable-metadata], [Disable metadata generation (both HTML and PDF, default no)])], [], [enable_metadata=yes] ) AC_ARG_ENABLE([metadata_html], - [AC_HELP_STRING([--disable-metadata-html], + [AS_HELP_STRING([--disable-metadata-html], [Disable metadata HTML generation (default no)])], [], [enable_metadata_html=yes] ) AC_ARG_ENABLE([metadata_pdf], - [AC_HELP_STRING([--enable-metadata-pdf], + [AS_HELP_STRING([--enable-metadata-pdf], [Enable metadata PDF generation (default no)])], [], [enable_metadata_pdf=no] ) AC_ARG_WITH([metadata_generator], - [AC_HELP_STRING([--with-metadata-generator=asciidoc|asciidoctor], + [AS_HELP_STRING([--with-metadata-generator=asciidoc|asciidoctor], [Specify metadata generator to use (default autodetect)])], [with_metadata_generator=$withval], [with_metadata_generator=detect]
@@ -259,7 +259,7 @@ LTP_DOCPARSE # Expect AC_ARG_WITH([expect], - [AC_HELP_STRING([--with-expect], + [AS_HELP_STRING([--with-expect], [have the Tcl/expect library])], [with_expect=$withval], [with_expect=no]
@@ -272,7 +272,7 @@ fi # Numa AC_ARG_WITH([numa], - AC_HELP_STRING([--without-numa], + AS_HELP_STRING([--without-numa], [without numa support]), [with_numa=$withval], [with_numa=yes]
@@ -280,7 +280,7 @@ AC_ARG_WITH([numa], # Perl AC_ARG_WITH([perl], - [AC_HELP_STRING([--with-perl], + [AS_HELP_STRING([--with-perl], [have a perl interpreter])], [with_perl=$withval], [with_perl=no]
@@ -293,7 +293,7 @@ fi # Python AC_ARG_WITH([python], - [AC_HELP_STRING([--with-python], + [AS_HELP_STRING([--with-python], [have a python interpreter])], [with_python=$withval], [with_python=no]
@@ -306,7 +306,7 @@ fi # TI RPC AC_ARG_WITH([tirpc], - AC_HELP_STRING([--without-tirpc], + AS_HELP_STRING([--without-tirpc], [without libtirpc support]), [with_tirpc=$withval], [with_tirpc=yes]
@@ -316,7 +316,7 @@ AC_ARG_WITH([tirpc], # Testsuites knobs AC_ARG_WITH([open-posix-testsuite], - [AC_HELP_STRING([--with-open-posix-testsuite], + [AS_HELP_STRING([--with-open-posix-testsuite], [compile and install the open posix testsuite])], [with_open_posix_testsuite=$withval], [with_open_posix_testsuite=no]
@@ -329,7 +329,7 @@ fi # TODO: testcases/realtime requires bash and python. AC_ARG_WITH([realtime-testsuite], - [AC_HELP_STRING([--with-realtime-testsuite], + [AS_HELP_STRING([--with-realtime-testsuite], [compile and install the realtime testsuite])], [with_realtime_testsuite=$withval], [with_realtime_testsuite=no]
m4/ltp-kernel_devel.m4 +3 -3
@@ -9,7 +9,7 @@ AC_DEFUN([LTP_CHECK_KERNEL_DEVEL],[ AC_MSG_CHECKING([for kernel-devel]) AC_ARG_WITH( [linux-version], - [AC_HELP_STRING([--with-linux-version=VERSION], + [AS_HELP_STRING([--with-linux-version=VERSION], [specify the Linux version to build modules for])], [LINUX_VERSION="${withval}"], AS_IF([test "$cross_compiling" = "no"],
@@ -18,7 +18,7 @@ AC_ARG_WITH( AC_SUBST(LINUX_VERSION) AC_ARG_WITH([linux-dir], - [AC_HELP_STRING([--with-linux-dir=DIR], + [AS_HELP_STRING([--with-linux-dir=DIR], [specify path to kernel-devel directory])], [LINUX_DIR="${withval}"], AS_IF([test -n "$LINUX_VERSION"],
@@ -44,7 +44,7 @@ AC_MSG_RESULT([$WITH_MODULES]) AC_ARG_WITH( [modules], - [AC_HELP_STRING([--without-modules], + [AS_HELP_STRING([--without-modules], [disable auto-building kernel modules])], [WITH_MODULES="no"], [])
testcases/realtime/m4/check.m4 +3 -3
@@ -1,10 +1,10 @@ AC_DEFUN([REALTIME_CHECK_PRIO_INHERIT],[ AC_MSG_CHECKING([for PTHREAD_PRIO_INHERIT]) -AC_TRY_COMPILE([ -#include <pthread.h>],[int main(void) { +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include <pthread.h>]], [[int main(void) { pthread_mutexattr_t attr; return pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT); -}],[has_priority_inherit="yes"],[]) +}]])],[has_priority_inherit="yes"],[]) if test "x$has_priority_inherit" = "xyes" ; then AC_DEFINE(HAS_PRIORITY_INHERIT,1,[Define to 1 if you have PTHREAD_PRIO_INHERIT]) AC_MSG_RESULT(yes)
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [RFC PATCH v2 7/7] m4: Fix warnings
Hi!
Looks like an obvious fix.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Generally this is a nice cleanup, I guess that we should wait for a while if there is someone who will ask to keep the ltp-scanner and then we can go ahead with the changes...
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi all,
[ Fixing the address: [email protected] was wrong, now using [email protected] ]
Quoted 4 lines
Hi!
Generally this is a nice cleanup, I guess that we should wait for a while if there is someone who will ask to keep the ltp-scanner and then we can go ahead with the changes...
+1. Please let us know if you're using ltp-scanner.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp