From patchwork Tue Nov 6 10:09:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 993564 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-96972-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="b28zpARj"; 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 42q4z309zbz9s9J for ; Tue, 6 Nov 2018 21:09:34 +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:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=hRfomcNn7sOfqRumQDT4qxfNlg6Bt GesNVUoKwiJaLbrZylgE1okEhcoJDu1THcL6cMkBwkwNJjRHSWb/UI2ycHAPEyWW w6ZEVwv7KXheFoeDgDGjvVrvgvrfYg1Z6WavT6GB8wkgb3G3N8oJBQgreFo03ruG H8oqyOgi6jqr7Q= 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:subject:date:message-id:mime-version :content-type; s=default; bh=xgdiaGq+1Guwz1EHWgI7plUgRp4=; b=b28 zpARjunR8ivkSbM1NoFA7ax6BcSvqTQBtikDPuIxL0DK2mqiQBuFLDRBHzo1SE3p +pBHSR2Zn3nU/pp9cbEn33WZqzfWU/w0gvkUip76513BkWYDGSdvbGRD2mvb5Uxw wbDA6v6hmQSm9G6eT2mLP+tCzYbCj4pTSou3CTX4= Received: (qmail 115409 invoked by alias); 6 Nov 2018 10:09:28 -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 115399 invoked by uid 89); 6 Nov 2018 10:09:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1043, mutexes X-HELO: mx1.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] RISC-V: don't assume PI mutexes and robust futexes before 4.20 (bug 23864) X-Yow: .. here I am in 53 B.C. and all I want is a dill pickle!! Date: Tue, 06 Nov 2018 11:09:23 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Support for futex_cmpxchg as only been added to 4.20-rc1. Andreas. [BZ #23864] * sysdeps/unix/sysv/linux/riscv/kernel-features.h (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]: Undef. --- sysdeps/unix/sysv/linux/riscv/kernel-features.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/unix/sysv/linux/riscv/kernel-features.h b/sysdeps/unix/sysv/linux/riscv/kernel-features.h index 37f4d99a92..d21c824624 100644 --- a/sysdeps/unix/sysv/linux/riscv/kernel-features.h +++ b/sysdeps/unix/sysv/linux/riscv/kernel-features.h @@ -21,3 +21,8 @@ #undef __ASSUME_CLONE_DEFAULT #define __ASSUME_CLONE_BACKWARDS 1 + +/* No support for PI mutexes or robust futexes before 4.20. */ +#if __LINUX_KERNEL_VERSION < 0x041400 +# undef __ASSUME_SET_ROBUST_LIST +#endif