From: Alex Williamson <alex.williamson@redhat.com>
To: Luis Henriques <luis.henriques@canonical.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Bjorn Helgaas <bhelgaas@google.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] PCI/MSI: stub pci_write_msi_msg when CONFIG_PCI_MSI is disabled
Date: Wed, 17 Feb 2016 14:19:32 -0700 [thread overview]
Message-ID: <20160217141932.283ced46@t450s.home> (raw)
In-Reply-To: <1455743138-17224-1-git-send-email-luis.henriques@canonical.com>
[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);
prev parent reply other threads:[~2016-02-17 21:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160203205108.GA9181@charon.olymp>
2016-02-12 18:17 ` [PATCH] vfio: fix link failures when CONFIG_PCI_MSI is disabled Alex Williamson
2016-02-17 15:37 ` Luis Henriques
[not found] ` <1455743138-17224-1-git-send-email-luis.henriques@canonical.com>
2016-02-17 21:19 ` Alex Williamson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160217141932.283ced46@t450s.home \
--to=alex.williamson@redhat.com \
--cc=bhelgaas@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=luis.henriques@canonical.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).