* [PATCH v3 20/27] PCI, xen: Use for_each_pci_resource() with xen pci
[not found] <1363217302-14383-1-git-send-email-yinghai@kernel.org>
@ 2013-03-13 23:28 ` Yinghai Lu
2013-03-15 13:35 ` Konrad Rzeszutek Wilk
0 siblings, 1 reply; 2+ messages in thread
From: Yinghai Lu @ 2013-03-13 23:28 UTC (permalink / raw)
To: Bjorn Helgaas, Ram Pai
Cc: linux-pci, virtualization, Yinghai Lu, linux-kernel,
Konrad Rzeszutek Wilk
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: virtualization@lists.linux-foundation.org
---
drivers/pci/xen-pcifront.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c
index 966abc6..c90835f 100644
--- a/drivers/pci/xen-pcifront.c
+++ b/drivers/pci/xen-pcifront.c
@@ -395,9 +395,7 @@ static int pcifront_claim_resource(struct pci_dev *dev, void *data)
int i;
struct resource *r;
- for (i = 0; i < PCI_NUM_RESOURCES; i++) {
- r = &dev->resource[i];
-
+ for_each_pci_resource(dev, r, i, PCI_ALL_RES) {
if (!r->parent && r->start && r->flags) {
dev_info(&pdev->xdev->dev, "claiming resource %s/%d\n",
pci_name(dev), i);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 20/27] PCI, xen: Use for_each_pci_resource() with xen pci
2013-03-13 23:28 ` [PATCH v3 20/27] PCI, xen: Use for_each_pci_resource() with xen pci Yinghai Lu
@ 2013-03-15 13:35 ` Konrad Rzeszutek Wilk
0 siblings, 0 replies; 2+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-03-15 13:35 UTC (permalink / raw)
To: Yinghai Lu
Cc: Bjorn Helgaas, linux-pci, Ram Pai, linux-kernel, virtualization
On Wed, Mar 13, 2013 at 04:28:15PM -0700, Yinghai Lu wrote:
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Rzeszutek Wilk <konrad.wilk@oracle.com>
> Cc: virtualization@lists.linux-foundation.org
> ---
> drivers/pci/xen-pcifront.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c
> index 966abc6..c90835f 100644
> --- a/drivers/pci/xen-pcifront.c
> +++ b/drivers/pci/xen-pcifront.c
> @@ -395,9 +395,7 @@ static int pcifront_claim_resource(struct pci_dev *dev, void *data)
> int i;
> struct resource *r;
>
> - for (i = 0; i < PCI_NUM_RESOURCES; i++) {
> - r = &dev->resource[i];
> -
> + for_each_pci_resource(dev, r, i, PCI_ALL_RES) {
> if (!r->parent && r->start && r->flags) {
> dev_info(&pdev->xdev->dev, "claiming resource %s/%d\n",
> pci_name(dev), i);
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-15 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1363217302-14383-1-git-send-email-yinghai@kernel.org>
2013-03-13 23:28 ` [PATCH v3 20/27] PCI, xen: Use for_each_pci_resource() with xen pci Yinghai Lu
2013-03-15 13:35 ` Konrad Rzeszutek Wilk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).