Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4259734rwd; Tue, 30 May 2023 02:51:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PQZGMSIKPtxIn9uSWuhEfS4xx1O1RAo/NGDiHGjRyUTCdfXo7SARe+1VaLKAkcLpVpUzC X-Received: by 2002:a05:6a20:3d03:b0:10e:d134:d686 with SMTP id y3-20020a056a203d0300b0010ed134d686mr2165121pzi.6.1685440292817; Tue, 30 May 2023 02:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685440292; cv=none; d=google.com; s=arc-20160816; b=E6qyotmyETEukCra+5gKBJouLP/wQcT87k0EMeCVIzrqPuOmfpUE4UJ3/r9wMbEJWe dJD0bFMgxFurPQMDT/U4qHkP24JlQcOtpneYZ9vTBGDpEKvNocpUgyHCnxYkD7FMlnAE YN64e/4DeyUpwkZsed6Igj0LrQXKtUHJR2toVh4pMqP3r54Ixb6bkuOkFCo7HqLuNu7t KdmDeW2uHcfxqQ78GZMC0SIoFZIvYr4gaRDe8nrdNfVmfqj0ykLp8SfZiBwNCNiSujtO wesnwK/b+8fxlRxBT+EGJOwO8QEkjubuczB6ovhdj2O+qQnhRo69NH3dZWAEtWdrLehm 0oGQ== 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=5OSazfFhKBuzJDvth1f7Dqd7hERmV/6oE9F1R8Geijg=; b=cfEq8DjsUaaB9PXiG7QQ1UfmW7t2vfUTmc/dZYO1ZFq+EtDwDKYGKfXcxb0kGjQURK aNeulHZUG4RzyOTXq7Fg/y7Nar9n9d6fGaw44GdakijTvTRVmYiXKDvgv7xBh7cgaA40 QIX/DMvCZKgT6qXFl5rX9Uj9CXdclBKOWa3o9F+AtQSFFwBdmxaGA6RPkGnOfu5JQLXS wfaj4bij1j/Z34hpVBZ7wfodvAOD+3IxjZGXYYz3K0JUU0eAM0hStuXX43dxFHVVS9DC 6HpCN9LjOAoeCb+qbGOz74thqVbG8oVfgj6QrJt/INkGpbLXTUbxY/mruYIH51/A6noM hZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VY2vw+2c; 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 i7-20020a63a847000000b005186bbfb286si1945809pgp.308.2023.05.30.02.51.20; Tue, 30 May 2023 02:51:32 -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=VY2vw+2c; 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 S231137AbjE3J1s (ORCPT + 99 others); Tue, 30 May 2023 05:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbjE3J1X (ORCPT ); Tue, 30 May 2023 05:27:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BC3C172A for ; Tue, 30 May 2023 02:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685438711; 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=5OSazfFhKBuzJDvth1f7Dqd7hERmV/6oE9F1R8Geijg=; b=VY2vw+2ckcn4YPBCfj3HSXDd1gpLU9M5rddUqWTVwjY9f/fWOaNvZEvNhvLBWHfNTlOeO7 OsWq06CNC8aRmaKD/lU9NrrGquyOy5PE4P59LVl+yD6q2pqROqOeVvQb5yIU9wQtZmi2uS TwGy8GtwgEG3j5hq1gMsgesT603Bxfw= 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-665-S-hb1pRvMniLEpkD_s7AUg-1; Tue, 30 May 2023 05:25:07 -0400 X-MC-Unique: S-hb1pRvMniLEpkD_s7AUg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 372DF811E86; Tue, 30 May 2023 09:25:06 +0000 (UTC) Received: from localhost (ovpn-12-192.pek2.redhat.com [10.72.12.192]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 47035492B0A; Tue, 30 May 2023 09:25:04 +0000 (UTC) Date: Tue, 30 May 2023 17:25:01 +0800 From: Baoquan He To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, arnd@arndb.de, christophe.leroy@csgroup.eu, agordeev@linux.ibm.com, wangkefeng.wang@huawei.com, schnelle@linux.ibm.com, David.Laight@aculab.com, shorne@gmail.com, willy@infradead.org, deller@gmx.de, Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: Re: [PATCH v5 RESEND 07/17] arc: mm: Convert to GENERIC_IOREMAP Message-ID: References: <20230515090848.833045-1-bhe@redhat.com> <20230515090848.833045-8-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-2.3 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=ham 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 Hi Christoph, On 05/16/23 at 11:31pm, Christoph Hellwig wrote: > > +#define ioremap ioremap > > +#define ioremap_prot ioremap_prot > > +#define iounmap iounmap > > Nit: I think it's cleaner to have these #defines right next to the > function declaration. For this one, I didn't add function declaration of ioremap_prot and iounmap in arch/arc/include/asm/io.h and the same to other arch's asm/io.h. Because asm-generic/io.h already has those function declaration, then ARCH's asm/io.h includeasm-generic/io.h. I tried adding function declarations for ioremap_prot() and iounmap(), building passed too. Do you think we need add extra function declarations in ARCH's asm/io.h file? Thanks Baoquan