Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4652025ima; Mon, 4 Feb 2019 22:05:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IZG2gw4DvIF+18b4K9vO9ZO6YmUtfAKFqIFrtcZePWnn0vdFfMtkVSXFr52hrpTQXBG+dXc X-Received: by 2002:a17:902:8686:: with SMTP id g6mr1568020plo.149.1549346737978; Mon, 04 Feb 2019 22:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549346737; cv=none; d=google.com; s=arc-20160816; b=eNLUP6+HTUGItKBTAMqFn2rbOAzvgapiWN1xRx1D+Xv8zPaEEr2M0avqTJ4wYIFNsM 8MersCdNy0xbKpcwf3TUygMpIokNQIYMdwiZpJGPqJbPVxVvYoE6lAMMVmA3cBohkJll fX0XAkz2mgYyIlpsowxpiSN/1eeEY8aQviGYmJxIcMjbDs6xEKa4nkRfMbXUwF2mh/ON viyURt7QmMmJCkDWT5NPBaRsLONASztbDyACsIfXcDZOnieXW6PI5XSpJVQFE0lIUkcG Dfk0iEbQ0gzNYQSLix7GD2Y4ryDDiwrZ4Q5eoEptkhrjRX2QJobC4ImC4EUKerEv6BbG wOYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3aQtR76X4VtJOe5HikigbKlmMNbkcyXJpnJePsqpATQ=; b=0zoW/YCxRth4/8MtC73Q1HbEMpET8yMRlCbCH5nmgvS1RhHEHQCAPQ67VAyrTUR9QY Px9U8dKYhxZ6gqPr3VYQPmmbrxew7XS+xF/prua9Qr7NQ/NbUpW7IngKdUe3/L4k6UnJ E78hukCb6/Ifae7helONXQRhRKUZpQfCaGbTPydyMlJUNrfR3KP5Nsqh6Haiv1nzXCRq OzJSq53MzXt7z1zz9CE+YtjjqMiLcU1D2DN8Jl1kGTH40RO7IP7/KxOIi1Z44HuZaZ6S NAgzKcc4kvud2m/HE9fwTIADXsrBiOPbra0M0uthTLCm31XncxJGruqVO1qCe+4bhzxy 3Qjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=PuZH3LDR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g63si2343615pfc.60.2019.02.04.22.05.22; Mon, 04 Feb 2019 22:05:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=PuZH3LDR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbfBEGEz (ORCPT + 99 others); Tue, 5 Feb 2019 01:04:55 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:35113 "EHLO mail-wm1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbfBEGEx (ORCPT ); Tue, 5 Feb 2019 01:04:53 -0500 Received: by mail-wm1-f50.google.com with SMTP id t200so2322198wmt.0 for ; Mon, 04 Feb 2019 22:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mobiveil.co.in; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3aQtR76X4VtJOe5HikigbKlmMNbkcyXJpnJePsqpATQ=; b=PuZH3LDRHXppM67bMX3nu+bUj3v5Xdm4kGzc3NjlmHaE5N4KR78ROx2/Ki4QA1i84K NDeWLjYlBuLu2VrSQXSQkYUMnO/DZFqh/Q/E+4CZCtSRTdasmo7B2tM8DrLl6qzcJRjM LIfV49RB3P5yCq5775EuUYxz6sh3EUkT1rbSE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3aQtR76X4VtJOe5HikigbKlmMNbkcyXJpnJePsqpATQ=; b=QGZedZ2mwT+ZP3JHSpd3f76n5rPB3TIGkoadf3bqOvbsO0n5IvzTUANHX5pSIQOljl tdIHp452hFcr1ZdmJsn3Zrpt4j7WCuDE42/ww87KrkhL1uoG++JkVoRkp9UjFiK4UkJa aMonVtaIl/zjASMv3aB9enJnHzdn/YmwBPk+0+cU6lA8cspnLMRDV/ObqEyxWoZ7lPK9 Qenxz7Glrx9QFt7AAlwJ+A+ROGt69LiuKiz5ICcdWfrPNnXQuA0RfJO6NT3JdDHoW/ci 2d89LFgm7/jJ7Fon1hJsvoOhFYZ4JocPlkQ3Msj8xbbn1jRtwnd1/iBxiUIRj3uFdxSO tGtQ== X-Gm-Message-State: AHQUAuZKvSkx5br3L0gqwupzMhwmqP6vH4D2FMuKMnDNWdcswnUXAqN3 w8RbWQaqB/Kx+YccOyfU9GGtUUkq8heJcSTOJbdSiQ== X-Received: by 2002:a7b:c5d1:: with SMTP id n17mr2145787wmk.152.1549346690855; Mon, 04 Feb 2019 22:04:50 -0800 (PST) MIME-Version: 1.0 References: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> <20190129080926.36773-7-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190129080926.36773-7-Zhiqiang.Hou@nxp.com> From: Subrahmanya Lingappa Date: Tue, 5 Feb 2019 11:37:24 +0530 Message-ID: Subject: Re: [PATCHv3 06/27] PCI: mobiveil: replace the resource list iteration function To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Subrahmanya Lingappa On Tue, Jan 29, 2019 at 1:39 PM Z.q. Hou wrote: > > From: Hou Zhiqiang > > As it won't delete any node in this iteration, replaced > the function resource_list_for_each_entry_safe() with > the resource_list_for_each_entry(). > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > --- > V3: > - No change > > drivers/pci/controller/pcie-mobiveil.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c > index 8ff873023b5f..b2cc9c097fc9 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -569,7 +569,7 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) > { > u32 value, pab_ctrl, type; > int err; > - struct resource_entry *win, *tmp; > + struct resource_entry *win; > > err = mobiveil_bringup_link(pcie); > if (err) { > @@ -620,7 +620,7 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) > program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); > > /* Get the I/O and memory ranges from DT */ > - resource_list_for_each_entry_safe(win, tmp, &pcie->resources) { > + resource_list_for_each_entry(win, &pcie->resources) { > if (resource_type(win->res) == IORESOURCE_MEM) > type = MEM_WINDOW_TYPE; > else if (resource_type(win->res) == IORESOURCE_IO) > -- > 2.17.1 >