Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1080264rwa; Sun, 21 Aug 2022 00:02:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR58cOK55610E0pDUWSwMxWjI9rLXtlS2+7ey0Y28XmS6bsS44b5BsIR4IId3BlsOWfgawYU X-Received: by 2002:a17:907:a068:b0:73d:5d21:7ed3 with SMTP id ia8-20020a170907a06800b0073d5d217ed3mr4560026ejc.685.1661065366859; Sun, 21 Aug 2022 00:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661065366; cv=none; d=google.com; s=arc-20160816; b=ytAO+UkkeukJPCGQL8dCK65gwm8K8yRe5wBg1KaKlUqykAk0YWYy0hx5M+xETFgkP7 Snl4dXnaPoYNWPzH1R0eczPVVO8bbPjrChezJPemV4kXhZjoe6Xw0AMhtdoVfVrW8lUv vPfKRHWj5lH43DdmsFEa28VbEn3kgBpDQVYeqfAtJ/OqCRwM8YdwEYdwsuZ9GwJyN7kM gvHG7uHOoe29dcXDzQHc3KDhrE/blA+qqpXb8MqLGj7WBTY5wIoES438iW9G23zoeDq1 cfV33i5nncRZw2jHyZ5ZKl+tgcgk1cqn2xBSQKqlZzc/Npow8h5lq/SrM1v/pWpdF6ck maIw== 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=Y24frkjw92lHic4CzAKbZqlsYEtpR03qXcobos9r9E0=; b=FqdDZj+EQsfZ5ShYNBRK+8emeMNwQoKsP9hEhb4Cl6/uoGiarXhBPAAkK7EMX/29uT eGZdxWBigNYaKqNehyRPP16RadT8hlQFPryBf6FVQTpa+Q9EfLbwtXt0YKsV1A0itunu +vHa9mVGPJ9ZUGMXqWyJySzB3BRns0+xkAIpbeGY83FNLOe0k8AJRQYMMwYu8pBa217V OmCAZxDq8SrXRCWJz9/yZhoaviXwDG80W92uMOESW7FZG//c0fxiuLuINoLbrZwg0p+L nRNlcuaM18J52wu11wuuG+M8TGyAq70SFWmPoNcjvGKIRhesXXbM5KtEhIRBQmhTKowU 2ttA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Zc4OOGXg; 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 fg13-20020a056402548d00b004467a1c8971si2362582edb.490.2022.08.21.00.02.20; Sun, 21 Aug 2022 00:02:46 -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=Zc4OOGXg; 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 S229670AbiHUGxy (ORCPT + 99 others); Sun, 21 Aug 2022 02:53:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiHUGxw (ORCPT ); Sun, 21 Aug 2022 02:53:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 929D018394 for ; Sat, 20 Aug 2022 23:53:51 -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=Y24frkjw92lHic4CzAKbZqlsYEtpR03qXcobos9r9E0=; b=Zc4OOGXgclsb2elQc+GGgtYuch XOrgWVeLrVlOMhXgzHaQNzFfnOEFU6Rje9fdHyXEDL7TNxBFyy3ClASkHKzPwxfkYbug92zSkvFPZ 5rUF1SDbdAznWhM1SiQr9ct3iklufFMW3ohAoEKIiYGXBSW7o1p+4whEGP2gg7EDhnGxCPJcGnwR8 jbjofXeZo6/dkyaXGlYaEtP7XF3qIl8XcsBkzXyU+L+LEQRYjPJpFsvXKVbutRqRzFpZXb1INu3Ld kI3PcZPsFReuKtD6n0eoVpstGs+c/U/Zp3OAJncTx87ssdqOp0z7c274KemdTHTrR97LOJIfzCqSr QJMhbB7Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPeqD-006ylG-3o; Sun, 21 Aug 2022 06:53:49 +0000 Date: Sat, 20 Aug 2022 23:53:49 -0700 From: Christoph Hellwig To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, hch@infradead.org, agordeev@linux.ibm.com, wangkefeng.wang@huawei.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 01/11] mm/ioremap: change the return value of io[re|un]map_allowed and rename Message-ID: References: <20220820003125.353570-1-bhe@redhat.com> <20220820003125.353570-2-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220820003125.353570-2-bhe@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 On Sat, Aug 20, 2022 at 08:31:15AM +0800, Baoquan He wrote: > +void __iomem *arch_ioremap(phys_addr_t phys_addr, size_t size, unsigned long prot); Please avoid the overly long lines. I also wonder if we just want a common definition with a __weak default instead of duplicating it in many arch headers. > + ioaddr = arch_ioremap(phys_addr, size, prot); > + if (IS_ERR(ioaddr)) > + return NULL; > + else if (ioaddr) > + return ioaddr; No need for the else here.