Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp430226rwe; Thu, 1 Sep 2022 01:48:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6GNnvpF6f12Cfp6o24vbmJJdKe1sCCRIFusAM5ZhQuASSjbrrLJqJve/XM2hBz6H1tS2Od X-Received: by 2002:a17:902:d2cb:b0:174:b99b:158d with SMTP id n11-20020a170902d2cb00b00174b99b158dmr18785665plc.86.1662022094599; Thu, 01 Sep 2022 01:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662022094; cv=none; d=google.com; s=arc-20160816; b=T9GVz+o4oVeM3iqzsiWqB9sDE0UvZpqP0tCINtcoV0Itq5GyW4idTGQHNI5RBaa78F QUfusI0KcrJFoyko96KIqo3qo8OfTTu+hyDG3kkync4dDr/H8Y9/r601CN4X2pftwsY8 aLuUlIEaSEEPD4fvPCK2pQEgaxnlCADFfyP1pAFHBXAQD7E4ZNKuf4vM8L++FPHRWYIV +tTLIoQzGswq9MyU+nsI8p+2aJjNVxV9MPJHa5deRpY17WeUQmrA//7Anv7+pH2DTy8c 3ukp0LQO9GcXdpxIXGYV+Cil9ahfxUBzktnNNJ8uVdsIdtjHQKLFucxTO4rqM7Z5D/vn 8gRQ== 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=esLxAvr9853Thi1a9GlfKlpRrKA5zTCBjO5Czht1ha8=; b=IK3FVWAiFQ2opfVVmpJdfsIHvW/LfqNgFNaCqpNzHonFi4fkGp4xzadzUrkFxSaPhK 8JNdwBS2XWY/ucXYWIbrSsh7c7y1BMUlaLy1UNMF6qDoO3+uHfMwfFJqdz+ScWjWV88e f3fZb5O+T+RKlMGjaf+KWv0LKxnDOr0F0wsJmaTT4CCiHuSKAt3+A+aehdGWMFoyTk0X GhE6AmDjjuuhN8M+CiyYOOvjmWicwA5KErxCENEt4iElPP0p9iP+QQTNtzwVyPDoWg5w GQx8A2iRxtQK9p5VcTim6iX+N7Jggt5aEGAuXmoZ5RiFOw/SFMxr96RKrAuA38sHdVz1 tLxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OV0rT22U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020a170903234f00b0016efa52d3ffsi18498064plh.241.2022.09.01.01.48.02; Thu, 01 Sep 2022 01:48:14 -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=@redhat.com header.s=mimecast20190719 header.b=OV0rT22U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbiIAHg6 (ORCPT + 99 others); Thu, 1 Sep 2022 03:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbiIAHg5 (ORCPT ); Thu, 1 Sep 2022 03:36:57 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E3DEA170 for ; Thu, 1 Sep 2022 00:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662017815; 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: in-reply-to:in-reply-to:references:references; bh=esLxAvr9853Thi1a9GlfKlpRrKA5zTCBjO5Czht1ha8=; b=OV0rT22UZNT7a4aRGyeZ0l9ey0Pp3EWcXuNm4AyC8vkwE95SJDn2RpFMcQhBU7+brqps7A e24cTK8OQ//h3XlZtpcBsJ9osICSeHGnLv6uzvFsX7CGUx3pz+/8uAqICBBOsCmZyBGogs jgcc8VubCol/zGlkHOK8ojwKkJwTtTg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-478-HY9lTAENOau_a90uJaIBJA-1; Thu, 01 Sep 2022 03:36:49 -0400 X-MC-Unique: HY9lTAENOau_a90uJaIBJA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6BC8B811E81; Thu, 1 Sep 2022 07:36:48 +0000 (UTC) Received: from localhost (ovpn-12-182.pek2.redhat.com [10.72.12.182]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4952740C141D; Thu, 1 Sep 2022 07:36:46 +0000 (UTC) Date: Thu, 1 Sep 2022 15:36:43 +0800 From: Baoquan He To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, agordeev@linux.ibm.com, wangkefeng.wang@huawei.com, linux-arm-kernel@lists.infradead.org, Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Subject: Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP Message-ID: References: <20220820003125.353570-1-bhe@redhat.com> <20220820003125.353570-11-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 08/21/22 at 12:06am, Christoph Hellwig wrote: > > +void __iomem * > > +arch_ioremap(phys_addr_t *paddr, size_t size, unsigned long *prot_val); > > +#define arch_ioremap arch_ioremap > > Shouldn't this still be under CONFIG_MMU? Yeah, you are right, will put them under CONFIG_MMU. I thought making GENERIC_IOREMAP depend MMU in Kconfig will contain that. But people can manually set the Kconfig item freely. Thanks for pointing it out. diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 5f220e903e5a..b63ad4698cf8 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -25,6 +25,7 @@ config SUPERH select GENERIC_SCHED_CLOCK select GENERIC_SMP_IDLE_THREAD select GUP_GET_PTE_LOW_HIGH if X2TLB + select GENERIC_IOREMAP if MMU >