Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1922437rwi; Thu, 3 Nov 2022 10:31:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM649rppd5ath2Zx9UZlQMcHXXhrQ4Yp6HZI3FaAbuwlsQgw8t0gVjuO/5BC1zy9WKMFTsTX X-Received: by 2002:a17:906:9bed:b0:7a6:a68b:9697 with SMTP id de45-20020a1709069bed00b007a6a68b9697mr29332566ejc.218.1667496688741; Thu, 03 Nov 2022 10:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667496688; cv=none; d=google.com; s=arc-20160816; b=MQe6vccuOdb1a6gVkW+Fq0qxUPiVBIC8o192Uk6nrM67Mu5tAzXLT77sLGdOJdFbvQ ky5E9Q0mP0zwZAe+1kIlcbKuV58dlwHVbQ8Z8sEXbgFS5E19IKdNkWZMbxVZ0R2MakWL 5qwyvhli8oTcVz9SkZ/BJCot+ROJnT8j6zwmf9+Fr/kn1gWu3Kjrw6SEQ/uPMiiDM2F5 WIS7SDei/N5S1ARjAKepiy/oSIjYcb3GoKCtxHQ+bbJzz2RbEyI/QwlopO3vs9ybohqe gqVejU4RB5Dc67vkM6KnWN4rrhlxz3Upi9M0FtlXEH82dVghn04jVF+P6lYBFo70dTHz aLRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qpf0SfDNqSJ7QKAl45vACMbtw5h4ZcbSbyT53uOjel0=; b=uddNmttfhsB1wLihA7NnX+rrKA1YUpX43yoqDjI9iMuKvLjRyGTwBiH0XmkUo8FngU JqvoRP24lLsQD8sPvGQH7zhlH9N4TknTYl5V24K8zcMzH+VIeg4oXJrQmtqpya/4NtsK y4cDDkNJfWaOcSO91Z+JJEWRgUyU4tjCYMWgw8/lFq2v/RCbYGsLEc67dhygMIUbP0Z/ OgsSIMYHFIGjBIRnQVEntQEWchNlkANEGdOlyzBFJF7FxbkHEuqR7dmR7EckgzGeBi+O DKmieqSzQsXrShkw/yYvhRCNm3OVjC4hbrCTg5XmAuZRm4WqhV4zuFLFdpHX/zrZkBSK JDkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OP2WWRVr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp3-20020a1709071b0300b007a7424836d5si2254336ejc.234.2022.11.03.10.31.04; Thu, 03 Nov 2022 10:31:28 -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=@intel.com header.s=Intel header.b=OP2WWRVr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231633AbiKCRNx (ORCPT + 97 others); Thu, 3 Nov 2022 13:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbiKCRNe (ORCPT ); Thu, 3 Nov 2022 13:13:34 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F8981EEC6; Thu, 3 Nov 2022 10:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667495577; x=1699031577; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7YpyRAArYVbF9WNy66xCFId6MSUjEg0Z+IBgztnk6pE=; b=OP2WWRVrzCQUsW25oYzoM1bPLb/DH5cvAgGftZdTKFTf38AY12WbVody 0ur29kF0xe53bTfiA+U6YrXxetSRAv7QmOe/mockPigLckHzLV+LkPaXy M4m0uGtvBGYT/F2KdB/18qFP1MRSrquyBKUvQVPtDoAXgmButYnQUoDS3 HAgb5jTUu7aXbTx/DM3e1DciDXThbxAC6/fzsz6dyqNVCDvREoN6OdQr7 7n8hILlG0oKlLFiHSPkArh70Ut8mxDmke1f+woq8JLBKzz263i0YsMBe7 s5BmSbrcuI2y+rPgaGkzVufEdrYxPlNSISVSm9cqIhBgslMfcKr8qOX92 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="311480553" X-IronPort-AV: E=Sophos;i="5.96,134,1665471600"; d="scan'208";a="311480553" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2022 10:12:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="666046647" X-IronPort-AV: E=Sophos;i="5.96,134,1665471600"; d="scan'208";a="666046647" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP; 03 Nov 2022 10:12:50 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oqdlm-006wiw-0o; Thu, 03 Nov 2022 19:12:46 +0200 Date: Thu, 3 Nov 2022 19:12:45 +0200 From: Andy Shevchenko To: Dominik Brodowski Cc: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Mika Westerberg , Michael Ellerman , Arnd Bergmann , Bjorn Helgaas , "Rafael J. Wysocki" , Juergen Gross , linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org, Miguel Ojeda , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Thomas Bogendoerfer , Nicholas Piggin , Christophe Leroy , "David S. Miller" , Bjorn Helgaas , Stefano Stabellini , Oleksandr Tyshchenko Subject: Re: [PATCH v2 4/4] pcmcia: Convert to use pci_bus_for_each_resource_p() Message-ID: References: <20221103164644.70554-1-andriy.shevchenko@linux.intel.com> <20221103164644.70554-5-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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, Nov 03, 2022 at 06:03:24PM +0100, Dominik Brodowski wrote: > Am Thu, Nov 03, 2022 at 06:46:44PM +0200 schrieb Andy Shevchenko: ... > > - > > - for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) { > > - res = s->cb_dev->bus->resource[i]; > > -#else > > - pci_bus_for_each_resource(s->cb_dev->bus, res, i) { > > #endif > > + > > + pci_bus_for_each_resource_p(s->cb_dev->bus, res) { > > if (!res) > > continue; > > Doesn't this remove the proper iterator for X86? Even if that is the right > thing to do, it needs an explict explanation. I dunno what was in 2010, but reading code now I have found no differences in the logic on how resources are being iterated in these two pieces of code. But fine, I will add a line to a commit message about this change. Considering this is done, can you issue your conditional tag so I will incorporate it in v3? -- With Best Regards, Andy Shevchenko