Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1336760 > unrolled thread

[PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is disabled

Started byLuis Henriques <luis.henriques@canonical.com>
First post2016-02-17 22:10 +0100
Last post2016-02-17 22:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is disabled Luis Henriques <luis.henriques@canonical.com> - 2016-02-17 22:10 +0100
    Re: [PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is  disabled Alex Williamson <alex.williamson@redhat.com> - 2016-02-17 22:20 +0100

#1336760 — [PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is disabled

FromLuis Henriques <luis.henriques@canonical.com>
Date2016-02-17 22:10 +0100
Subject[PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is disabled
Message-ID<r3hwe-3CX-13@gated-at.bofh.it>
Stubbing function pci_write_msi_msg when CONFIG_PCI_MSI is disabled fixes
a link failure in vfio:

drivers/built-in.o: In function `vfio_msi_set_vector_signal':
:(.text+0x626640): undefined reference to `pci_write_msi_msg'

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
 include/linux/msi.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/msi.h b/include/linux/msi.h
index a2a0068a8387..09dc375d11d8 100644
--- a/include/linux/msi.h
+++ b/include/linux/msi.h
@@ -105,18 +105,19 @@ struct msi_desc {
 
 struct pci_dev *msi_desc_to_pci_dev(struct msi_desc *desc);
 void *msi_desc_to_pci_sysdata(struct msi_desc *desc);
+void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg);
 #else /* CONFIG_PCI_MSI */
 static inline void *msi_desc_to_pci_sysdata(struct msi_desc *desc)
 {
 	return NULL;
 }
+static inline void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg) { }
 #endif /* CONFIG_PCI_MSI */
 
 struct msi_desc *alloc_msi_entry(struct device *dev);
 void free_msi_entry(struct msi_desc *entry);
 void __pci_read_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
 void __pci_write_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
-void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg);
 
 u32 __pci_msix_desc_mask_irq(struct msi_desc *desc, u32 flag);
 u32 __pci_msi_desc_mask_irq(struct msi_desc *desc, u32 mask, u32 flag);

[toc] | [next] | [standalone]


#1336774 — Re: [PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is disabled

FromAlex Williamson <alex.williamson@redhat.com>
Date2016-02-17 22:20 +0100
SubjectRe: [PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is disabled
Message-ID<r3hFU-3GO-17@gated-at.bofh.it>
In reply to#1336760
[cc +bjorn, +linux-pci]

On Wed, 17 Feb 2016 21:05:38 +0000
Luis Henriques <luis.henriques@canonical.com> wrote:

> Stubbing function pci_write_msi_msg when CONFIG_PCI_MSI is disabled fixes
> a link failure in vfio:
> 
> drivers/built-in.o: In function `vfio_msi_set_vector_signal':
> :(.text+0x626640): undefined reference to `pci_write_msi_msg'
> 
> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
> ---
>  include/linux/msi.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/linux/msi.h b/include/linux/msi.h
> index a2a0068a8387..09dc375d11d8 100644
> --- a/include/linux/msi.h
> +++ b/include/linux/msi.h
> @@ -105,18 +105,19 @@ struct msi_desc {
>  
>  struct pci_dev *msi_desc_to_pci_dev(struct msi_desc *desc);
>  void *msi_desc_to_pci_sysdata(struct msi_desc *desc);
> +void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg);
>  #else /* CONFIG_PCI_MSI */
>  static inline void *msi_desc_to_pci_sysdata(struct msi_desc *desc)
>  {
>  	return NULL;
>  }
> +static inline void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg) { }
>  #endif /* CONFIG_PCI_MSI */
>  
>  struct msi_desc *alloc_msi_entry(struct device *dev);
>  void free_msi_entry(struct msi_desc *entry);
>  void __pci_read_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
>  void __pci_write_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
> -void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg);
>  
>  u32 __pci_msix_desc_mask_irq(struct msi_desc *desc, u32 flag);
>  u32 __pci_msi_desc_mask_irq(struct msi_desc *desc, u32 mask, u32 flag);

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web