From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2073FC43603 for ; Fri, 14 May 2021 08:28:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E469A6145A for ; Fri, 14 May 2021 08:28:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233602AbhENI3h (ORCPT ); Fri, 14 May 2021 04:29:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:43035 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231974AbhENI3d (ORCPT ); Fri, 14 May 2021 04:29:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620980902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5w0DUc6v8+Ohu3/Un9/gp8Wn9KzAdxtOI/JJ1rmwYuM=; b=MHWi8GD/J3rduRLKttZBW3JY0KkuPatrQQYcDZFRbDItAePYepy44RJZIRbdHPgMd6x83A 72RUsCFXXFPPtvclIm0Y+7+tLuuyNcSaWOOnRNKp6EMGbvoGiT7jaqBWnYuK7KA2JIHhVY RrXbJDN5izvfRIbTh6mMblSZpOWP5VI= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-ac4GH1eBMpG2IP--xcVPbA-1; Fri, 14 May 2021 04:28:20 -0400 X-MC-Unique: ac4GH1eBMpG2IP--xcVPbA-1 Received: by mail-ej1-f72.google.com with SMTP id z15-20020a170906074fb029038ca4d43d48so9365779ejb.17 for ; Fri, 14 May 2021 01:28:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=5w0DUc6v8+Ohu3/Un9/gp8Wn9KzAdxtOI/JJ1rmwYuM=; b=jizWn58aym0Gv3nQ47zyEmMKQ7eCpFPo3RNK8sTh7UKoCB9Sx9lkeopNJCRdUUfAtV JSjRV70lNSmBTSb2oUyFhYMUG2h/53eoxZjHlIS9z5yzh33SBLVLvrMotKctychIU4kF 3WVmexgcdTL5hSUBhP/CjhSQj65I6+ixoSZBbAPTWfdeBkUSi/C35mkXtGp08pyfrouO qlNC0Y20TEzZxBHfFVMT/sIUdDqru4UQP2kN5p5GmaQRVc4zZfNdUBtqHxMZVV518T0m E2LNWCU2BvbJAXyiFt34ieZTNO8eFS0SjJ4CvyjKW4DcbBdKI66D2HTz83dCgvGbAhYo +H9g== X-Gm-Message-State: AOAM531SBqeo6q4nGLBilZ1FjSBAHftThgeB7A6vu2B8j0vY8Hd1veBT /fLLzSVx5VOTZzvJGi8JdIZhY2kpLywx1aQs3O06gICnjyDlkGN6duIIOdxj+7GadySw6biB5Mk 6AZdrzbXfLu5ho5vs9BdNi65Dcg== X-Received: by 2002:aa7:c510:: with SMTP id o16mr54629579edq.310.1620980898811; Fri, 14 May 2021 01:28:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAa7CtEGRAWr1lF7BGwkWkyoH00MJ3yOs2g5NJWUfLIy+27BD8PFUUKz633oLeJlXdgmtb9Q== X-Received: by 2002:aa7:c510:: with SMTP id o16mr54629525edq.310.1620980898588; Fri, 14 May 2021 01:28:18 -0700 (PDT) Received: from [192.168.3.132] (p5b0c6501.dip0.t-ipconnect.de. [91.12.101.1]) by smtp.gmail.com with ESMTPSA id s4sm4090012edq.96.2021.05.14.01.28.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 May 2021 01:28:18 -0700 (PDT) Subject: Re: [PATCH v19 2/8] riscv/Kconfig: make direct map manipulation options depend on MMU To: Mike Rapoport , Andrew Morton Cc: Alexander Viro , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christopher Lameter , Dan Williams , Dave Hansen , Elena Reshetova , "H. Peter Anvin" , Hagen Paul Pfeifer , Ingo Molnar , James Bottomley , Kees Cook , "Kirill A. Shutemov" , Matthew Wilcox , Matthew Garrett , Mark Rutland , Michal Hocko , Mike Rapoport , Michael Kerrisk , Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , "Rafael J. Wysocki" , Rick Edgecombe , Roman Gushchin , Shakeel Butt , Shuah Khan , Thomas Gleixner , Tycho Andersen , Will Deacon , Yury Norov , linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-riscv@lists.infradead.org, x86@kernel.org, kernel test robot References: <20210513184734.29317-1-rppt@kernel.org> <20210513184734.29317-3-rppt@kernel.org> From: David Hildenbrand Organization: Red Hat Message-ID: Date: Fri, 14 May 2021 10:28:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210513184734.29317-3-rppt@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 13.05.21 20:47, Mike Rapoport wrote: > From: Mike Rapoport > > ARCH_HAS_SET_DIRECT_MAP and ARCH_HAS_SET_MEMORY configuration options have > no meaning when CONFIG_MMU is disabled and there is no point to enable > them for the nommu case. > > Add an explicit dependency on MMU for these options. > > Signed-off-by: Mike Rapoport > Reported-by: kernel test robot > --- > arch/riscv/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index a8ad8eb76120..c426e7d20907 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -26,8 +26,8 @@ config RISCV > select ARCH_HAS_KCOV > select ARCH_HAS_MMIOWB > select ARCH_HAS_PTE_SPECIAL > - select ARCH_HAS_SET_DIRECT_MAP > - select ARCH_HAS_SET_MEMORY > + select ARCH_HAS_SET_DIRECT_MAP if MMU > + select ARCH_HAS_SET_MEMORY if MMU > select ARCH_HAS_STRICT_KERNEL_RWX if MMU && !XIP_KERNEL > select ARCH_HAS_STRICT_MODULE_RWX if MMU && !XIP_KERNEL > select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST > Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb