Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp826763ybk; Wed, 13 May 2020 14:16:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjDtt+k/07oTOGAFbCfFCar+odwBVY5KYfDxFIeUGYsVJ+Hu06QC4Q+TKkBPkMNvyqaxJY X-Received: by 2002:a50:d7c7:: with SMTP id m7mr1474314edj.101.1589404590901; Wed, 13 May 2020 14:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589404590; cv=none; d=google.com; s=arc-20160816; b=QlTHmhzEquHl9jhfiGKU6UGCysdEcASOGtENw9A1Hi3P6JetmRfaOShdlHBfZxP3ua 7ab119oszGzpRtrb18gokyRv4IO7E/pbIhXjDcXPzLzpvV6oQUmec/G51fLyL1kP5/Et q3TyZdAf9/Y3v0Ep/zkB+K8HeQ3SS1UnmyI8y0xKSGQhHCnZanDO5cEH3nPhrpxGckHX AlyarbnP/Vhq4+16LPZpD0ASlh8KyyIJRpXtIJ8l0M+C6/EuU8W4SkRQTmdBM31wdIOQ d7HqFddpkgZu242SP5Icu3fQCxgQAajkXFxcerKGEONsDfU/yQkpb9yx4ERxveGWXQih ObTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=Uz9nKjyzBvX3Z4DCax30kQ0R3wJYCQylCQFmxXOLegM=; b=HT+Vz6YiFEOtUhd/qvrFDF9Tp5y7RMSKXeHn2hSLjoCeU74iEfV3dMDphJbnPbZYwS H1BfPIpP8E9U81Z4HYwgS+Blx+xnm/4iC0yE4Htr8/r7+IB3uoRR9pS7j3zHqT43Mk7r BIggNAmcD9L7DZBgpb12nx2O68frPHmh3NSzBmmI0YxIbAF6+92Tq0OjPvy3lKPE2FT8 V1ekI9nVTJKS13vGEqHoacZRll/fdNZtSQM8P5ZJukPflGGv5OZ2ELfmu68EP2MO7zKY 3whR7YG+VnjFLmuRUusDaspOtX7LP+xZ2Uvdy7akc8OlLXQwSu+F8kgK4rpchkHR3Js+ GZbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=WVkzwlpB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si499503edt.371.2020.05.13.14.16.08; Wed, 13 May 2020 14:16:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=WVkzwlpB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728299AbgEMVOr (ORCPT + 99 others); Wed, 13 May 2020 17:14:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbgEMVOr (ORCPT ); Wed, 13 May 2020 17:14:47 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6DB5C061A0C for ; Wed, 13 May 2020 14:14:46 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id k7so6640440pjs.5 for ; Wed, 13 May 2020 14:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=Uz9nKjyzBvX3Z4DCax30kQ0R3wJYCQylCQFmxXOLegM=; b=WVkzwlpBwQjpu4x+KKlzKUJUU6cft6mHPVuspHWs4HG0R1rBhtrqOb5O5vlt8PYln6 2iCnL3187fBHhPkag8APA6XfAAuU5MAJRN3xy1zWcbODx6G83mzzeWRLpXTCWjfso0tH Frw5Hfk2et37CFBlypU36+0RLd16EwZacEalMK2H6iygVeuw0QMVOUnOFrT3l4hI5bGr 4aYTYUtvhYexvOW3jU96O1r/Y0Sfvqe8MbkU9KtW7kkyzePjxIX48fWg+HTzDn99cJI3 BeTCz5rtJbpAlkwdMT5qnpPJUvj9H6NrYUewbUtYHU8DpxM9omIT7gjW8UUUj7FhbY6c K0xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=Uz9nKjyzBvX3Z4DCax30kQ0R3wJYCQylCQFmxXOLegM=; b=jM+CamgLM3zi2dhg55SEKuwwLbCiQi3v1VXTxpgFpRIqZrrGqIaR7QqYC9E0Gc+t1x 0wOgrnRp+nABDtXaAtSBTLOvHO7R0XwY+YN02Fa/9IajL57PGqdET1IZ1CM6wx0Pv5zH xzWZOs6Eq7T9iTkWJHTVypTgUtWb5gpz7gIKq5rtHXuT2Pfw405yh8k7Cz45yHAD2/8h dOB/jZiG45+pBv1u2t9z1wZrxyjh+Udlvr/Yd1+eCPLljKi7aTSvqB8yoR+zRq0MD06J e090JvrEUWAQDdsVnT17+aFjalVyPnLbhq2b48Tx4qRPFJC4YpvBrHK8P1m96kkW4Ekw uMkA== X-Gm-Message-State: AOAM530C1h0h7W4gxwYJPXNCHZ2fgmy9bYt8BiElephbTd0QQHLIf8Yi +4GDKSrqUJN6Zc/M3CQpcf0eeA== X-Received: by 2002:a17:90a:21cf:: with SMTP id q73mr10395521pjc.230.1589404486290; Wed, 13 May 2020 14:14:46 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id ft14sm16123887pjb.46.2020.05.13.14.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 14:14:45 -0700 (PDT) Date: Wed, 13 May 2020 14:14:45 -0700 (PDT) X-Google-Original-Date: Tue, 12 May 2020 17:30:43 PDT (-0700) Subject: Re: [PATCH 07/10] riscv: Make SYS_SUPPORTS_HUGETLBFS depends on MMU In-Reply-To: <20200511022001.179767-8-wangkefeng.wang@huawei.com> CC: Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, wangkefeng.wang@huawei.com, hulkci@huawei.com From: Palmer Dabbelt To: wangkefeng.wang@huawei.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 10 May 2020 19:19:58 PDT (-0700), wangkefeng.wang@huawei.com wrote: > HUGETLBFS only used when MMU enabled, add the dependence. > > Reported-by: Hulk Robot > Signed-off-by: Kefeng Wang > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 494e670520ae..d0010ed8e0f4 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -138,6 +138,7 @@ config ARCH_SUPPORTS_DEBUG_PAGEALLOC > def_bool y > > config SYS_SUPPORTS_HUGETLBFS > + depends on MMU > def_bool y I don't think this is the right way to do this: there's nothing specific to the RISC-V implementation that makes HUGETLBFS depend on MMU. That said, SH appears to do it this way so I'm OK taking this for now. > > config STACKTRACE_SUPPORT