From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by sourceware.org (Postfix) with ESMTPS id 958963858D1E for ; Tue, 4 Apr 2023 12:31:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 958963858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-17683b570b8so34274738fac.13 for ; Tue, 04 Apr 2023 05:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680611471; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=RxBwHIzGj4D8pck8C0qXyG3Nz0A4kJJT7svzg3iZm50=; b=j3SGYD5aZvPqhEuE5UWFxOb460plXolSWWnyTI9AO+XbzPUhJPzHXsP3MLvYODt+we kwCZ2r/WaZvnLinxfV0XLuuf8OaRfhmLbcoo4KpLDZS8PRue74qa1lSrwzzqtI+9y/t0 Q/UcLI96PvH3yWrtIQFZEdBoCSPbeIFiNLmtIDHG5kLqd1ff1+uYmRS9rHFwFIWxfYjf 7hPVL6MI32aOhFI26qd0hxP6nllJBNQV8raaOvfuZOzdUpQbNTGAqLeITcc5lUsWVAkX 3p2T4o/dq5mjPyjvRXxAiiNjwJ8zjwpBWZadh3Ri3JmFlgb7xxzGzAM7x8mHHKx319ck GGxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680611471; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RxBwHIzGj4D8pck8C0qXyG3Nz0A4kJJT7svzg3iZm50=; b=yU94WFCU0gYt9ljOrs7Wgo39u0k5xxbaTmIPDD4f+on1tiDXaJeMFU/MMlFeSWVay4 gNWwNHoxcuZ03LBzQgSFu6grF0N4Ooq5cIAoq/qGBiUFZKXIBwGUZSgj7FsOiucBs16G w1H3uVQqSpwVGb96Xtryf4qpL5UXYQVJoqYTV2m4p4r/8J77FZ8768SLjVBowahCVsTj ct88sAdLJu/nbsyVsxwKb5wuVJW/3FSnktWRDWohOJO6c/WR6wwQCdu7XsxsNvucsvAd 21+DkQlBdSUG1DJ8akS31WPRw8LRBGM3F5rTXydbRlZsnZQiWlVhcDxNtc2bg18x9Ki6 PfnQ== X-Gm-Message-State: AAQBX9e642+Z6SsmoLjDIs703KLkEGDE11iGU0nmKJAiz7ufpZrmtcFo 44Tku/15470Dy7YWw8gq2i1Q411Dfj0zUIqrwfhYKg== X-Google-Smtp-Source: AKy350YEWMGPCqRI/NOH4de06hukyF05ttojYeGPlyCPWNlwIKa43NOP8vMZR+GuX74Svqglw6VY0g== X-Received: by 2002:a05:6870:e30c:b0:172:2d00:99f7 with SMTP id z12-20020a056870e30c00b001722d0099f7mr1378850oad.20.1680611471388; Tue, 04 Apr 2023 05:31:11 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c1:e5a5:9f18:8489:6b06:184]) by smtp.gmail.com with ESMTPSA id j26-20020a9d7d9a000000b0068bd6cf405dsm5476109otn.1.2023.04.04.05.31.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 05:31:10 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [COMMITTED] nptl: Fix tst-cancel30 on sparc64 Date: Tue, 4 Apr 2023 09:31:07 -0300 Message-Id: <20230404123107.1260124-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: As indicated by sparc kernel-features.h, even though sparc64 defines __NR_pause, it is not supported (ENOSYS). Always use ppoll or the 64 bit time_t variant instead. --- sysdeps/pthread/tst-cancel30.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sysdeps/pthread/tst-cancel30.c b/sysdeps/pthread/tst-cancel30.c index 6eb4eb5b42..ff803386be 100644 --- a/sysdeps/pthread/tst-cancel30.c +++ b/sysdeps/pthread/tst-cancel30.c @@ -46,9 +46,7 @@ tf (void *arg) /* Wait indefinitely for cancellation, which only works if asynchronous cancellation is enabled. */ -#ifdef SYS_pause - syscall (SYS_pause); -#elif defined SYS_ppoll || defined SYS_ppoll_time64 +#if defined SYS_ppoll || defined SYS_ppoll_time64 # ifndef SYS_ppoll_time64 # define SYS_ppoll_time64 SYS_ppoll # endif -- 2.34.1