From patchwork Wed Jan 26 12:35:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1584456 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=oCkBSt1K; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Zpx2sPEr; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JkNX063JRz9t4b for ; Wed, 26 Jan 2022 23:37:04 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 60A2C3C9696 for ; Wed, 26 Jan 2022 13:37:02 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [IPv6:2001:4b78:1:20::5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id C30413C96A3 for ; Wed, 26 Jan 2022 13:35:57 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id AB518600D70 for ; Wed, 26 Jan 2022 13:35:56 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3E6DD218E6; Wed, 26 Jan 2022 12:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1643200556; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dZ2257FBpKpXx4RXfZY7Kuyy9kXb4fz+X2GIlx0+CZY=; b=oCkBSt1KVt0DZqrlK0vBtb2x7l5MF72sdEXBUJ6Q+5bwLJJWnXGZVdfToDcN95YlSADGDU /TOslxIYCLY+2eH3vOaxUu1sQHPeyBdWOrUMtlIYvzJfCDuX+2ETmKq1dJj3r9304a3j60 skGftHAHzSi1PZKXQT4YW5re4ceN9SI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1643200556; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dZ2257FBpKpXx4RXfZY7Kuyy9kXb4fz+X2GIlx0+CZY=; b=Zpx2sPEr7j5b7YCi9n+alzznj3JQx3u4vKIIDZkKMeHkwHWJPyY1DkMyUv/4uG9K8k1xjb 9wIKe84C05H9yuAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1A5DB13F30; Wed, 26 Jan 2022 12:35:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +PY9BSxA8WGkOQAAMHmgww (envelope-from ); Wed, 26 Jan 2022 12:35:56 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 26 Jan 2022 13:35:42 +0100 Message-Id: <20220126123547.13298-3-pvorel@suse.cz> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220126123547.13298-1-pvorel@suse.cz> References: <20220126123547.13298-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-5.smtp.seeweb.it Subject: [LTP] [RFC PATCH v2 2/7] m4: Remove check for io_set_eventfd X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: automated-testing@yoctoproject.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" It 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. Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- New in v2 m4/ltp-eventfd.m4 | 11 +---------- testcases/kernel/syscalls/eventfd/eventfd01.c | 18 +----------------- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/m4/ltp-eventfd.m4 b/m4/ltp-eventfd.m4 index 5d729a33df..ecd7e951dc 100644 --- a/m4/ltp-eventfd.m4 +++ b/m4/ltp-eventfd.m4 @@ -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 +dnl Copyright (c) 2017-2022 Petr Vorel dnl Author: Masatake YAMATO 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 - #include - ], - [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 ]) diff --git a/testcases/kernel/syscalls/eventfd/eventfd01.c b/testcases/kernel/syscalls/eventfd/eventfd01.c index 242e170e27..3180ea1593 100644 --- a/testcases/kernel/syscalls/eventfd/eventfd01.c +++ b/testcases/kernel/syscalls/eventfd/eventfd01.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2008 Vijay Kumar B. + * 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) {