Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp636720iof; Mon, 6 Jun 2022 09:47:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/df91RFa8B0P1rq30LSJNzsLmStnjS8SD5aU02hsth52t2B9bJh/Cs9saDsHpbz76YK3x X-Received: by 2002:a05:6a00:2390:b0:51c:21e1:782 with SMTP id f16-20020a056a00239000b0051c21e10782mr4923507pfc.21.1654534032230; Mon, 06 Jun 2022 09:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654534032; cv=none; d=google.com; s=arc-20160816; b=xPWPj/eC+IlefsXD3Nnr41O0P0bkeynMjJpdNIXB9f+cQ8cyFCjmZjeB7iSoAgQ3+U c86gzszgQmvZfOwgijcE4gWT3e8Z5/m92gov5gRhHl4ClaRh0K8AKYQqU1lTj/IXSVgW TEje2psM06EHyPzx+verbfy40pCJl9p56Vi14o8RSaarIIu3u0o1uYH12z8asHL8J6zx 6MbZD3NZPs8Oiq5eq1WXyl0PrW090kn+GN4+SIyIaUFofFOvxnQIgJkxk/pnIB8v6vv1 UPUdJ6V7Kw2IBBrnlb/12R4Q78AVXBDJVLHbD9epwS3n+rv1Bd9M078rVHXW5eJ4MCEH x38Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ySO04BQMERNCntShqOb8/rNfxsKhEd7ILgGbDAOV4w0=; b=pSnzPLn6/qoSCesUA10tQDnE8bbliW+L1Ep+t4GBIhLtOUaezxK8wIYJsEtaySSaGF fCCaUNBoE+O3WeuPRQLO/wB/mZ6jBSqPL9AGlkmZj3i3rvM4aNRKslwvHrtopU8GSuoL ed4ttbCeZjjPbc1h3qW8YJQRqhYBDsy/XMs4f3Y1j7Ie/h1gbUJpwQgCnkusKS7Yiexz AjbFDXBI0IJnnYk0i4AowTN1n3T0o9SEpxsvKt5gEOe7q4ihr+/VkKUqS4L89oyBS1JU HW/HKT0kPigI5G7G/v1aVQxgL9UcVZpgSRewPJ8a8IDu54m8Cx7R2o5bSXLHl/4b76ny DN6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=H6WifuO0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o31-20020a635d5f000000b003fc85b4f6b7si20386879pgm.95.2022.06.06.09.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=H6WifuO0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B3A23151F5; Mon, 6 Jun 2022 09:28:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241695AbiFFQ2b (ORCPT + 99 others); Mon, 6 Jun 2022 12:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241689AbiFFQ21 (ORCPT ); Mon, 6 Jun 2022 12:28:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3ABC309793 for ; Mon, 6 Jun 2022 09:28:25 -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-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=ySO04BQMERNCntShqOb8/rNfxsKhEd7ILgGbDAOV4w0=; b=H6WifuO0/6N7vAHH54RYwAlnqo Hyluy/Ch1n37hU2m3hG5j12KRTvuxPdcJQTeCPU29Du3eK2gP5gOm/bzEhTS0PrPzmAwq1HfeQZkY qBsSPwSDwoa7IdAQocgBFZZvqw60famOZ426duHRmHEhwZTmghgOExqFS1jMPz/6eCQvlyh/sKUZ+ CViWhH7nEU7NVedIywrkFR/H2ZyG57V4ex5PtkgV1ADfrK8WA52ayevSsY8O7NPSdvvPTFfrrai3J FvN67L5wuD+tPVtOYfMfsWogMK0836TJvomfeAmHv3EAgIKi3RdKpecNtzIoihMedyOg1ClCjfuDd p/sSeGsw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyFaM-0022H0-HN; Mon, 06 Jun 2022 16:28:10 +0000 Date: Mon, 6 Jun 2022 09:28:10 -0700 From: Christoph Hellwig To: Kefeng Wang Cc: Christoph Hellwig , catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, arnd@arndb.de, anshuman.khandual@arm.com Subject: Re: [PATCH v4 5/6] arm64: mm: Convert to GENERIC_IOREMAP Message-ID: References: <20220606074815.139265-1-wangkefeng.wang@huawei.com> <20220606074815.139265-6-wangkefeng.wang@huawei.com> <7a8f19b5-f22e-83be-0f9a-63cef6152812@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7a8f19b5-f22e-83be-0f9a-63cef6152812@huawei.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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Jun 06, 2022 at 09:28:22PM +0800, Kefeng Wang wrote: > As commit bdc48fa11e46  ("checkpatch/coding-style: deprecate 80-column > warning") increased > > the limit to 100 columns,so I don't get warning when using checkpatch, and > it is not a hard limit, No, it did not increase the general limit, just for exception cases. Block comments certainly don't fall under that, and while the mileage on the defineѕ may vary it generally is more readable to have them on the next line. checkpath is unfortunately totall broken these days :( > > but if this is a mandatory requirement, I will resend them with break lines. > > > > +#define ioremap_cache(addr, size) ({ \ > > > + pfn_is_map_memory(__phys_to_pfn(addr)) ? \ > > > + (void __iomem *)__phys_to_virt(addr) : ioremap_prot(addr, size, PROT_NORMAL); \ > > > +}) > > And this really should be an inline function. > > We still need a define, see kernel/iomem.c, You can just define it to the same name after the inline.