All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu: Fix IOMMU sysfs stubs
@ 2014-07-07 20:31 Alex Williamson
       [not found] ` <20140707203054.28174.58508.stgit-GCcqpEzw8uZBDLzU/O5InQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Williamson @ 2014-07-07 20:31 UTC (permalink / raw)
  To: joro-zLv9SwRftAIdnm+yROfE0A
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

0-day kernel build testing reports:

   arch/x86/kvm/x86.o: In function `iommu_device_destroy':
>> (.text+0x7a0a): multiple definition of `iommu_device_destroy'
   arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x490): first defined here
   arch/x86/kvm/x86.o: In function `iommu_device_link':
>> (.text+0x7a15): multiple definition of `iommu_device_link'
   arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x49b): first defined here
   arch/x86/kvm/x86.o: In function `iommu_device_unlink':
>> (.text+0x7a25): multiple definition of `iommu_device_unlink'
   arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x4ab): first defined here
   arch/x86/kvm/x86.o: In function `iommu_device_create':
>> (.text+0x79f8): multiple definition of `iommu_device_create'
   arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x47e): first defined here

These are due to failing to define the stubs as static inline.  Fix.

Signed-off-by: Alex Williamson <alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---

relative to joro/iommu.git core

 include/linux/iommu.h |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index c7097d7..20f9a52 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -403,23 +403,24 @@ static inline int iommu_domain_set_attr(struct iommu_domain *domain,
 	return -EINVAL;
 }
 
-struct device *iommu_device_create(struct device *parent, void *drvdata,
-				   const struct attribute_group **groups,
-				   const char *fmt, ...)
+static inline struct device *iommu_device_create(struct device *parent,
+					void *drvdata,
+					const struct attribute_group **groups,
+					const char *fmt, ...)
 {
 	return ERR_PTR(-ENODEV);
 }
 
-void iommu_device_destroy(struct device *dev)
+static inline void iommu_device_destroy(struct device *dev)
 {
 }
 
-int iommu_device_link(struct device *dev, struct device *link)
+static inline int iommu_device_link(struct device *dev, struct device *link)
 {
 	return -EINVAL;
 }
 
-void iommu_device_unlink(struct device *dev, struct device *link)
+static inline void iommu_device_unlink(struct device *dev, struct device *link)
 {
 }
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iommu: Fix IOMMU sysfs stubs
       [not found] ` <20140707203054.28174.58508.stgit-GCcqpEzw8uZBDLzU/O5InQ@public.gmane.org>
@ 2014-07-08  8:05   ` Joerg Roedel
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2014-07-08  8:05 UTC (permalink / raw)
  To: Alex Williamson; +Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

On Mon, Jul 07, 2014 at 02:31:36PM -0600, Alex Williamson wrote:
> 0-day kernel build testing reports:
> 
>    arch/x86/kvm/x86.o: In function `iommu_device_destroy':
> >> (.text+0x7a0a): multiple definition of `iommu_device_destroy'
>    arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x490): first defined here
>    arch/x86/kvm/x86.o: In function `iommu_device_link':
> >> (.text+0x7a15): multiple definition of `iommu_device_link'
>    arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x49b): first defined here
>    arch/x86/kvm/x86.o: In function `iommu_device_unlink':
> >> (.text+0x7a25): multiple definition of `iommu_device_unlink'
>    arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x4ab): first defined here
>    arch/x86/kvm/x86.o: In function `iommu_device_create':
> >> (.text+0x79f8): multiple definition of `iommu_device_create'
>    arch/x86/kvm/../../../virt/kvm/vfio.o:vfio.c:(.text+0x47e): first defined here
> 
> These are due to failing to define the stubs as static inline.  Fix.
> 
> Signed-off-by: Alex Williamson <alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-08  8:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-07 20:31 [PATCH] iommu: Fix IOMMU sysfs stubs Alex Williamson
     [not found] ` <20140707203054.28174.58508.stgit-GCcqpEzw8uZBDLzU/O5InQ@public.gmane.org>
2014-07-08  8:05   ` Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.