Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp369841rwl; Wed, 9 Aug 2023 16:12:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENXYmdyW4x7FZuyjS6VreIxxyBeHmc4qadoWVe2CWf8IyieWlqNT4KgC4G5A9fPtm+5CHI X-Received: by 2002:a17:907:a04a:b0:993:d88e:41ed with SMTP id gz10-20020a170907a04a00b00993d88e41edmr450672ejc.3.1691622771663; Wed, 09 Aug 2023 16:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691622771; cv=none; d=google.com; s=arc-20160816; b=d6/g7ikMcPcEg+ADRRyzZhWmwp5k+cdPeGWwiyaaHP43bMb6DHqQ/lIjtu5ywSnmiV pDq/wrsjuTuNEVnqORl2g1sCe6h1kLKk1DakCaKRnIxGXINWuJQOUF6TMyTPGpBDj6o9 uncVXGuS1YSLvq15oSwVpiAkSyOfnmQ1xxovdilGI/5opWAIW+OuY7S7BvUljrOnRdG4 Ego1Qu7E5mgzTU7/JfDR+7hLf6n5gQCeyebUa5W+NNKxe6tT/pV4gBhODxrkhWW5E+Kf yYuNII/9HL0Dw3mZdLhTQNb9fB+9WINAFTQD2NvItCCM9FInjQaMTfAByD3vnPZs1LVQ yi4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IYXl3RrdquB9Ho5EWgj4Trb8iaNi5AAc7V62J8/U+2U=; fh=dRGPy/GUVQBr6P5C4c0BpouzVBX31feMG7jM/7BeeDM=; b=TvNdAFqvfk5IVmM5N71ZTnnSiRXNI888DZ1/EFEbcHxp3OAInamOceWLtD038znyUA RoxLsSV0bz2nwNlTq70nxJrT5STpuFNsPg9WV0JQ3QPOEOsFUJkqL5XDVtwb0JUk8sD5 hebyXyVNGv/+8wkBvuF/n0Oae4+RKnc88vfFXYHOStyQVhYzaPGluWhpjN9KbYeDyzeS kcoLOCiiTMqki+4toQGlGcaKIMXvGzdGl1mYtNzMv8vwx3FA+JwBF9yiIFpl6QZAVEnH Vgd0m6Oqq/zhKzjEPs/Kj/4fZ/w0ur+XrNySNzuvQcahX79CEqFnSGC4tUVlxsUqV7lv hOyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=g9IRPR3f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jp26-20020a170906f75a00b00992ca9eab82si225803ejb.393.2023.08.09.16.12.27; Wed, 09 Aug 2023 16:12:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=g9IRPR3f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233349AbjHIWpi (ORCPT + 99 others); Wed, 9 Aug 2023 18:45:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233350AbjHIWpg (ORCPT ); Wed, 9 Aug 2023 18:45:36 -0400 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B0501BD for ; Wed, 9 Aug 2023 15:45:35 -0700 (PDT) Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6b9cf1997c4so274793a34.3 for ; Wed, 09 Aug 2023 15:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1691621134; x=1692225934; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IYXl3RrdquB9Ho5EWgj4Trb8iaNi5AAc7V62J8/U+2U=; b=g9IRPR3fNObWkuKpLaklAg2KwEj1yjDutI0rhuDEpK8jY96HuF2psgETqe/XrmnPhD jva8ORxrZEcvXDzSK6ywrvMf/BOF5kgQJoeYleP5Uh4JpvzThQzWGsA6RUWhsNeJXNhb dte2auuNnDHSjHOLS9xgL5q/yWasM5K/0kAfqoTJRPYa0PDluh7q9HLvDdOKTlJJfHto 5PDPiHv5gn02yEggqEHSGPT4NdPuFZSBwP61bEbRpbLZtthJfw1UYCJiH1bc5vmQi21o 9S9lL0wqEs5RXiEqUFrEpZt5+wDoWrrGF0fXP006pmFQX7ibAWrur8lTWaj0rGrkUXhM Z9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691621134; x=1692225934; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IYXl3RrdquB9Ho5EWgj4Trb8iaNi5AAc7V62J8/U+2U=; b=UBiv43x1AgJOIBzwieMlSW3NH8c44yuXh3BAh3WiRifwHioVAh7dlyi9DWT3wuVoeA egS2TskAtmqbIUTkzlFpYB4oDPCbVhkZmr+C/z81w25dGxL3pI/wZx9O2/zPVxJMB3vm NFxxKh5nwKBouTEEOQCBkCTty9X8He6DNgyRhWSHlXE4zEKLL3Accwa2ZUwHPWo04Vim ikfFhfAV2EAjtOcELeow8QKYKg72RlooNrm+N+CaqUs64By/clI5t5CH8E6mVym2Vyg3 lTJlqaVTtt4S1JlRjrKYmMhxHIUx14eRJK8jr/DlnQ6xzwZhVwazb9r8t2bTJHUmKzEK FsWA== X-Gm-Message-State: AOJu0YwUo3IhIpdEYFU6jgOSr1TFOyugLUUweFBFEg7rKqABLCNnsXYz tpXYom2N1FSOdHrCI/LfIBYcIw== X-Received: by 2002:a9d:7306:0:b0:6bc:8a9a:35a6 with SMTP id e6-20020a9d7306000000b006bc8a9a35a6mr486662otk.9.1691621134736; Wed, 09 Aug 2023 15:45:34 -0700 (PDT) Received: from ghost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id x9-20020a656aa9000000b00563df2ba23bsm108226pgu.50.2023.08.09.15.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 15:45:34 -0700 (PDT) Date: Wed, 9 Aug 2023 15:45:31 -0700 From: Charlie Jenkins To: Conor Dooley Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, conor@kernel.org, paul.walmsley@sifive.com, palmer@rivosinc.com, aou@eecs.berkeley.edu, anup@brainfault.org, konstantin@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, mick@ics.forth.gr, jrtc27@jrtc27.com, rdunlap@infradead.org, alexghiti@rivosinc.com Subject: Re: [PATCH v9 0/4] RISC-V: mm: Make SV48 the default address space Message-ID: References: <20230809015110.3290774-1-charlie@rivosinc.com> <20230809-bobbing-unleaded-c3d5e1c57d96@wendy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809-bobbing-unleaded-c3d5e1c57d96@wendy> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 09, 2023 at 08:42:58AM +0100, Conor Dooley wrote: > On Tue, Aug 08, 2023 at 06:51:06PM -0700, Charlie Jenkins wrote: > > Make sv48 the default address space for mmap as some applications > > currently depend on this assumption. Users can now select a > > desired address space using a non-zero hint address to mmap. Previously, > > requesting the default address space from mmap by passing zero as the hint > > address would result in using the largest address space possible. Some > > applications depend on empty bits in the virtual address space, like Go and > > Java, so this patch provides more flexibility for application developers. > > This still does not build: > ../fs/binfmt_flat.c:900:30: error: call to undeclared function 'is_compat_task'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > > Reproduceable with allmodconfig. > There is some weird interaction with compat.h. Moving the definitions in pgtable.h into the #ifndef __ASSEMBLY__ guarded section resolves the compile error. I will send out another version with this change. -Charlie