Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbbHQXxN (ORCPT ); Mon, 17 Aug 2015 19:53:13 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:33815 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbbHQXxM (ORCPT ); Mon, 17 Aug 2015 19:53:12 -0400 Date: Mon, 17 Aug 2015 18:53:07 -0500 From: Bjorn Helgaas To: Yinghai Lu Cc: David Miller , Benjamin Herrenschmidt , Wei Yang , TJ , Yijing Wang , Andrew Morton , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 09/51] PCI: Rename pdev_sort_resources to pdev_check_resources Message-ID: <20150817235307.GR26431@google.com> References: <1438039809-24957-1-git-send-email-yinghai@kernel.org> <1438039809-24957-10-git-send-email-yinghai@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438039809-24957-10-git-send-email-yinghai@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2352 Lines: 70 On Mon, Jul 27, 2015 at 04:29:27PM -0700, Yinghai Lu wrote: > We don't do sorting in those functions anymore, so change "sort" to "check" > instead. What *do* we do in those functions? "Check" doesn't tell me anything. > Signed-off-by: Yinghai Lu > --- > drivers/pci/setup-bus.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c > index 6642a60..292f2a5 100644 > --- a/drivers/pci/setup-bus.c > +++ b/drivers/pci/setup-bus.c > @@ -206,8 +206,8 @@ static resource_size_t __pci_resource_alignment( > return r_align; > } > > -/* Sort resources by alignment */ > -static void pdev_sort_resources(struct pci_dev *dev, > +/* check resources and save to the list */ > +static void pdev_check_resources(struct pci_dev *dev, > struct list_head *realloc_head, > struct list_head *head) > { > @@ -243,7 +243,7 @@ static void pdev_sort_resources(struct pci_dev *dev, > } > } > > -static void __dev_sort_resources(struct pci_dev *dev, > +static void __dev_check_resources(struct pci_dev *dev, > struct list_head *realloc_head, > struct list_head *head) > { > @@ -261,7 +261,7 @@ static void __dev_sort_resources(struct pci_dev *dev, > return; > } > > - pdev_sort_resources(dev, realloc_head, head); > + pdev_check_resources(dev, realloc_head, head); > } > > static inline void reset_resource(struct resource *res) > @@ -561,7 +561,7 @@ static void pdev_assign_resources_sorted(struct pci_dev *dev, > { > LIST_HEAD(head); > > - __dev_sort_resources(dev, add_head, &head); > + __dev_check_resources(dev, add_head, &head); > __assign_resources_sorted(&head, add_head, fail_head); > > } > @@ -574,7 +574,7 @@ static void pbus_assign_resources_sorted(const struct pci_bus *bus, > LIST_HEAD(head); > > list_for_each_entry(dev, &bus->devices, bus_list) > - __dev_sort_resources(dev, realloc_head, &head); > + __dev_check_resources(dev, realloc_head, &head); > > __assign_resources_sorted(&head, realloc_head, fail_head); > } > -- > 1.8.4.5 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/