Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12479966rwd; Fri, 23 Jun 2023 06:46:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nQb+zARcLB2/KZAFAw0DvB2FZJra1JVKj5VHRdY1jnmE52bf4TZ2cvnavvd++FmDY7gc6 X-Received: by 2002:a17:902:7487:b0:1ae:626b:475f with SMTP id h7-20020a170902748700b001ae626b475fmr14603146pll.12.1687527967429; Fri, 23 Jun 2023 06:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687527967; cv=none; d=google.com; s=arc-20160816; b=Zm0VuWmpOM785K7vC5+A//UTrcFWUacLxkA7tVrHFUjh1H9SxtNpnKO+CrfDsa0lTn EkonKICw1CuGXMIgEvSZCzCstfX27eigLbJC9InRqshakzqQtFszPBwyiQQCn8Z2NQGn w12DhHU0m/f0jP14pbHG1+XRppUg07iwEqTakNq5D03i4bMTXD+zUHDtgf5pxnlloqP3 1rdDdqb48aOtBpgZkkKmXVjNVxE5HJGJ+48CtPWBFyFDIjm4gEK2SEN42di7GRy/IgNQ NN9jrP9PDJCCvIdYRPiZPOXaaUJfahWmVv+r4dxYzg6cqz13OqkXNhzbOtc3Na49Lv4/ tftw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=or1yf29Fu1p/KO2eB6NhgR+ERu9xH16hWL3lfuIWK2I=; b=ceD00Dlh3yy/GQdjx4wd1nXmzUS894GRgfowxTbZTdZmSCHvJIihVHmkyWPjGnI+YS YPIKFOTkUhV0M2O1eqSH6cQxCuOqZwlv1YF9z1Mx9UQ0E+N80gOMEarKeOySQjsYd39P jY7fs0XfE4uyNmI8wi4J9bRGcIlEPfA+3DqqUTJJZtiCuWY1Wcs1s3c3vAff5dnEnRkn rT6iGWip01+/UIR+/uTac8pylSh5J4cdO7Ciu8QhQqvx5EuH8OwqtbHzAoTMvqUrqoC1 We1rbJ83bNbyjv1c1QdxFgIzV+0Amdgn8TDQtFRINIiNw+wuKksNz42PSfyLrpdK4KYp 3/Og== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a170902d59100b001b551fb08f2si5455742plh.168.2023.06.23.06.45.55; Fri, 23 Jun 2023 06:46:07 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjFWNaQ (ORCPT + 99 others); Fri, 23 Jun 2023 09:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjFWNaP (ORCPT ); Fri, 23 Jun 2023 09:30:15 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 929B62688; Fri, 23 Jun 2023 06:30:14 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QndMK29Prz6GD5l; Fri, 23 Jun 2023 21:27:25 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 23 Jun 2023 14:30:12 +0100 Date: Fri, 23 Jun 2023 14:30:11 +0100 From: Jonathan Cameron To: Terry Bowman CC: , , , , , , , , , Subject: Re: [PATCH v7 27/27] cxl/core/regs: Rename phys_addr in cxl_map_component_regs() Message-ID: <20230623143011.00007076@Huawei.com> In-Reply-To: <20230622205523.85375-28-terry.bowman@amd.com> References: <20230622205523.85375-1-terry.bowman@amd.com> <20230622205523.85375-28-terry.bowman@amd.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500001.china.huawei.com (7.191.163.213) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, 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 Thu, 22 Jun 2023 15:55:23 -0500 Terry Bowman wrote: > From: Robert Richter > > Trivial change that renames variable phys_addr in > cxl_map_component_regs() to shorten its length to keep the 80 char > size limit for the line and also for consistency between the different > paths. > > Signed-off-by: Robert Richter > Signed-off-by: Terry Bowman Fair enough on consistency side. I don't care about being just over 80 chars :) Reviewed-by: Jonathan Cameron > --- > drivers/cxl/core/regs.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/cxl/core/regs.c b/drivers/cxl/core/regs.c > index 982ef79670c7..ba351a887040 100644 > --- a/drivers/cxl/core/regs.c > +++ b/drivers/cxl/core/regs.c > @@ -216,16 +216,16 @@ int cxl_map_component_regs(struct cxl_register_map *map, > > for (i = 0; i < ARRAY_SIZE(mapinfo); i++) { > struct mapinfo *mi = &mapinfo[i]; > - resource_size_t phys_addr; > + resource_size_t addr; > resource_size_t length; > > if (!mi->rmap->valid) > continue; > if (!test_bit(mi->rmap->id, &map_mask)) > continue; > - phys_addr = map->resource + mi->rmap->offset; > + addr = map->resource + mi->rmap->offset; > length = mi->rmap->size; > - *(mi->addr) = devm_cxl_iomap_block(dev, phys_addr, length); > + *(mi->addr) = devm_cxl_iomap_block(dev, addr, length); > if (!*(mi->addr)) > return -ENOMEM; > }