Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2354085rwd; Fri, 2 Jun 2023 08:17:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58nEyazjpIDSRB8FhQ9YukNP0l5GSCBUaBs4k9TQOYI7J9gaRPVuSxk2SaUCX193MHT1Ln X-Received: by 2002:a17:90b:46ce:b0:253:38b7:682d with SMTP id jx14-20020a17090b46ce00b0025338b7682dmr215272pjb.18.1685719069663; Fri, 02 Jun 2023 08:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685719069; cv=none; d=google.com; s=arc-20160816; b=dO4rMqJkyaG6QXdLKOJ76ItJZ0t7pgF5VNMfAvPUpCLslFWGh7vcDljsu1A7vEzSXb A++MC7koaMEf/iAXHnlVHxfr8PBLqfR4j5/h9VGLeOxRFIrKw/n45UhcyEsQsqvO0LjF QgYXTJvIFKDEVqjxWJwOzrmZC//OFM+RCBwo4Z/S7j1UIVtuFPWM7oLAlDCeIiyaEGFa D/9yEZmAPFjZVNrrCC2JAZttnww8xfHjI0yPw/eKIaIEH/t8mnfiQZ0PjCdL+CTE29li VajQesNjpPlAp/PZxfvkxRVYBTpcRYOKDRtRNOwRkxBvYTS7AlafKbuauDGiy+jQqVcA Ak/Q== 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=ocKE1f0bUukWrMCc7BWG+5wPWxISqRQFWegvqJhpRoU=; b=q3rrG/GIZT+bfEy3TAhRt4pEKAr4q67IODo+57BAP7tRA+H3qotLpaIR0zPrB5Mlr6 BAOhpVRplZ3YnclH1rX4s1sX8P52hcsfd1Yaj4tiOZSYdgJlj19K8buXAJ29vSdk5edg xAxK+r/kPRZKYy6x9bO5/E0k6bZ5i4qUG4c4VWPIJXaeKnv0yhKDN84wJkupHTjYGO8v Gb/9kq3Qv3gTufhBfywyaFPTG4+w33wD/RSYjOK5tviz+vWYss+8tkivBhkPFczrWOBD iFcNxoBgwCc95KdKmCCXmdHOsz+6+EJp5rgyvr7B5+lejh1gqeVEI1TRzdI0QCeUN2Uk N+dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=WIIWHgGd; 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 j3-20020a17090adc8300b00252e51a9fbasi1140257pjv.122.2023.06.02.08.17.32; Fri, 02 Jun 2023 08:17:49 -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=@infradead.org header.s=bombadil.20210309 header.b=WIIWHgGd; 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 S235458AbjFBPGB (ORCPT + 99 others); Fri, 2 Jun 2023 11:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235248AbjFBPF7 (ORCPT ); Fri, 2 Jun 2023 11:05:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4558E1BD; Fri, 2 Jun 2023 08:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ocKE1f0bUukWrMCc7BWG+5wPWxISqRQFWegvqJhpRoU=; b=WIIWHgGdb8DEderqio76Mo8Wmh yl3VJD0sw8OCUo67vXf98L6V77Akmq1+qJEdOWefS8Aokrf36ZLeRhL0R/mPvEA2E4gwca288roft 7ZQUv4PIIBXVQxj+JKCpxS9QxxVqqmoqJwnPlM9SLVw39pAB1haoXDM8PmQjDK4zgXHEmc4u9UZqi Bjv/79Pl8p/m0p6pliASi9GjRaq+Cf7+pBYYL77J8u915w5cAsWuMUG51yMxFwBlOPXUCzUa4Ik3X Tbq2BK1fHFm2ca5lVcWvaZoqH2nZLJRZ8wiiozVta7u5jmZCY8kRbb1mEu9VHtKnWMjukb4gXDGKg 3Zqa9VOw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q56Lj-007CIv-0v; Fri, 02 Jun 2023 15:05:55 +0000 Date: Fri, 2 Jun 2023 08:05:55 -0700 From: Christoph Hellwig To: Baoquan He Cc: Christoph Hellwig , 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 Subject: Re: [PATCH v5 RESEND 14/17] mm/ioremap: Consider IOREMAP space in generic ioremap Message-ID: References: <20230515090848.833045-1-bhe@redhat.com> <20230515090848.833045-15-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Fri, Jun 02, 2023 at 06:42:59PM +0800, Baoquan He wrote: > On 06/01/23 at 04:13am, Christoph Hellwig wrote: > > On Tue, May 30, 2023 at 05:37:23PM +0800, Baoquan He wrote: > > > If we want to consolidate code, we can move is_ioremap_addr() to > > > include/linux/mm.h libe below. Not sure if it's fine. With it, > > > both kernel/iomem.c and mm/ioremap.c can use is_ioremap_addr(). > > > > Can we just add a ne header for this given that no one else really > > needs it? > > Is it OK like below? Looks good to me: Reviewed-by: Christoph Hellwig