Patchwork PCI: Fix allnoconfig with PCI DMA source quirk

login
register
mail settings
Submitter Alex Williamson
Date June 12, 2012, 4 a.m.
Message ID <20120612035930.11801.98916.stgit@bling.home>
Download mbox | patch
Permalink /patch/164320/
State Accepted
Headers show

Comments

Alex Williamson - June 12, 2012, 4 a.m.
When CONFIG_PCI_QUIRKS is not defined we want to keep the reference
counting the same for callers of pci_get_dma_source.  But I forgot to
account for !CONFIG_PCI where we then need to make an inline for
pci_get_dev.  This fixes it.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---

 include/linux/pci.h |    3 +++
 1 file changed, 3 insertions(+)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Bjorn Helgaas - June 12, 2012, 3:22 p.m.
On Mon, Jun 11, 2012 at 10:00 PM, Alex Williamson
<alex.williamson@redhat.com> wrote:
> When CONFIG_PCI_QUIRKS is not defined we want to keep the reference
> counting the same for callers of pci_get_dma_source.  But I forgot to
> account for !CONFIG_PCI where we then need to make an inline for
> pci_get_dev.  This fixes it.
>
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---
>
>  include/linux/pci.h |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/include/linux/pci.h b/include/linux/pci.h
> index 95479cd..35884f27 100644
> --- a/include/linux/pci.h
> +++ b/include/linux/pci.h
> @@ -1368,6 +1368,9 @@ static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus,
>  static inline int pci_domain_nr(struct pci_bus *bus)
>  { return 0; }
>
> +static inline struct pci_dev *pci_dev_get(struct pci_dev *dev)
> +{ return NULL; }

I folded this into patch [1/5] and will rebase "next" today.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/include/linux/pci.h b/include/linux/pci.h
index 95479cd..35884f27 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1368,6 +1368,9 @@  static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus,
 static inline int pci_domain_nr(struct pci_bus *bus)
 { return 0; }
 
+static inline struct pci_dev *pci_dev_get(struct pci_dev *dev)
+{ return NULL; }
+
 #define dev_is_pci(d) (false)
 #define dev_is_pf(d) (false)
 #define dev_num_vf(d) (0)