From patchwork Tue Nov 5 14:35:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1189722 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-106649-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="pN+9PPNt"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 476sfv2GLFz9sNT for ; Wed, 6 Nov 2019 01:36:23 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=tUx 2jpCXujr9CPOi4/k4msB+5nd8qFSeQyLJMhZHL7UDmRS7XK+o6eEorb80yKX3Kth K9/IinL+ojmR/2Zm+7BicJVMy2ItdbOcUTSGJoKEn5HD97bqgKiMv531/7vBJ6XV fXrIB/LpIsyQ4POiBc90QAd/FBj245Aa5qT1anbs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=52Cp3oTOs gh0AATIbLiOoXLXzx8=; b=pN+9PPNthCYYSH1e8bEDe3e/624pXgZQmxc+10xzD jk0RqRpyckIpMipB48KqBFrG0KXkXemG7NWG1at0Ud4xogPBThfnGyO3WVAd7zzF z3D63dBfdB2acRcnIEco93dAe0LnD2u9IvHl/W47iG28gyVyAG/pmtAEfNIgZtrF EY= Received: (qmail 125041 invoked by alias); 5 Nov 2019 14:36:05 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 124967 invoked by uid 89); 5 Nov 2019 14:36:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy= X-HELO: mail-out.m-online.net From: Lukasz Majewski To: Joseph Myers , Paul Eggert Cc: Alistair Francis , Alistair Francis , GNU C Library , Adhemerval Zanella , Florian Weimer , Florian Weimer , Zack Weinberg , Carlos O'Donell , Lukasz Majewski Subject: [PATCH v2] linux: pselect: Remove CALL_PSELECT6 macro Date: Tue, 5 Nov 2019 15:35:42 +0100 Message-Id: <20191105143542.31792-1-lukma@denx.de> MIME-Version: 1.0 Nothing defines CALL_PSELECT6 in the current tree, so remove it. Tested with: - make PARALLELMFLAGS="-j8" && make xcheck PARALLELMFLAGS="-j8" (x86_64) - scripts/build-many-glibcs.py --- Changes for v2: - Simplify the commit message --- sysdeps/unix/sysv/linux/pselect.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sysdeps/unix/sysv/linux/pselect.c b/sysdeps/unix/sysv/linux/pselect.c index d07d64114d..acda3e0cdd 100644 --- a/sysdeps/unix/sysv/linux/pselect.c +++ b/sysdeps/unix/sysv/linux/pselect.c @@ -59,15 +59,8 @@ __pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, data.ss = (__syscall_ulong_t) (uintptr_t) sigmask; data.ss_len = _NSIG / 8; - int result; - -#ifndef CALL_PSELECT6 -# define CALL_PSELECT6(nfds, readfds, writefds, exceptfds, timeout, data) \ - SYSCALL_CANCEL (pselect6, nfds, readfds, writefds, exceptfds, timeout, data) -#endif - - result = CALL_PSELECT6 (nfds, readfds, writefds, exceptfds, timeout, - &data); + int result = SYSCALL_CANCEL (pselect6, nfds, readfds, writefds, exceptfds, + timeout, &data); # ifndef __ASSUME_PSELECT if (result == -1 && errno == ENOSYS)