From patchwork Mon Jun 24 13:37:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 1121272 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="YfIz+2Vl"; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45XVjF6R5Pz9s3l for ; Mon, 24 Jun 2019 23:37:51 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 79D5A10065; Mon, 24 Jun 2019 15:37:43 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by helium.openadk.org (Postfix) with ESMTPS id 0D8D110065 for ; Mon, 24 Jun 2019 15:37:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zuRrtdHGoKErFH3nv1AIbtQ7oW9zG4P3yj4SDxowUcs=; b=YfIz+2VlyQFObZPYqHaUl6sp5o ve3KQ4JgBuZw5RF0XjWmcxIMn/KHf0jzsu9630pxOcNswYbBLnF93w8eq833DDFEp06VWN1lHICUn grCxG7zmOrtq1wD7QALHvoMFH/KzFeKw7KQTGjrdOu7jkRAOKW4FSpQ9afWavHNkLSW9uVj802p6t JFALzGog3+yxkadr2aCCsO00voa3nxEJxPKaMgpQ7GF+vx1HNGZNHI+Rh4MtDoDeDoAcj2XTrB0ER lGhQzShwaKByQDZ0D6zKUHuauNTMkLz19fAQCCuqDgTZx1inaF6D2rcAVE8p4kmByo6AEpsnKLkRN FoIidnDA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hfPA9-0004xI-Qd for devel@uclibc-ng.org; Mon, 24 Jun 2019 13:37:37 +0000 Date: Mon, 24 Jun 2019 06:37:37 -0700 From: Christoph Hellwig To: devel@uclibc-ng.org Message-ID: <20190624133737.GA18527@infradead.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Subject: [uclibc-ng-devel] riscv: add the MAP_UNINITIALIZED definition X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" From: Christoph Hellwig This avoids a nommu build failure. Signed-off-by: Christoph Hellwig --- libc/sysdeps/linux/riscv64/bits/mman.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/sysdeps/linux/riscv64/bits/mman.h b/libc/sysdeps/linux/riscv64/bits/mman.h index 316f87d99..fa6f8e6a0 100644 --- a/libc/sysdeps/linux/riscv64/bits/mman.h +++ b/libc/sysdeps/linux/riscv64/bits/mman.h @@ -31,6 +31,7 @@ # define MAP_HUGETLB 0x40000 /* Create huge page mapping. */ # define MAP_SYNC 0x80000 /* Perform synchronous page faults for the mapping. */ +# define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could - be uninitialized. */ #endif /* Include generic Linux declarations. */