WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] iommu: add missing __init annotations

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] iommu: add missing __init annotations
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 May 2010 04:10:46 -0700
Delivery-date: Thu, 06 May 2010 04:16:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273142682 -3600
# Node ID 7e18b2bb7fe08aab707d46af930f6a2cedbd6d35
# Parent  69c85f5b0a07e7a95945d117ea478a80d21c6b9e
iommu: add missing __init annotations

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/drivers/passthrough/amd/pci_amd_iommu.c |    2 +-
 xen/drivers/passthrough/iommu.c             |    2 +-
 xen/drivers/passthrough/vtd/extern.h        |    1 -
 xen/drivers/passthrough/vtd/iommu.c         |   14 +++++++-------
 4 files changed, 9 insertions(+), 10 deletions(-)

diff -r 69c85f5b0a07 -r 7e18b2bb7fe0 xen/drivers/passthrough/amd/pci_amd_iommu.c
--- a/xen/drivers/passthrough/amd/pci_amd_iommu.c       Thu May 06 11:43:54 
2010 +0100
+++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c       Thu May 06 11:44:42 
2010 +0100
@@ -158,7 +158,7 @@ static void amd_iommu_setup_dom0_devices
     spin_unlock(&pcidevs_lock);
 }
 
-int amd_iov_detect(void)
+int __init amd_iov_detect(void)
 {
     INIT_LIST_HEAD(&amd_iommu_head);
 
diff -r 69c85f5b0a07 -r 7e18b2bb7fe0 xen/drivers/passthrough/iommu.c
--- a/xen/drivers/passthrough/iommu.c   Thu May 06 11:43:54 2010 +0100
+++ b/xen/drivers/passthrough/iommu.c   Thu May 06 11:44:42 2010 +0100
@@ -277,7 +277,7 @@ int deassign_device(struct domain *d, u8
     return ret;
 }
 
-int iommu_setup(void)
+int __init iommu_setup(void)
 {
     int rc = -ENODEV;
 
diff -r 69c85f5b0a07 -r 7e18b2bb7fe0 xen/drivers/passthrough/vtd/extern.h
--- a/xen/drivers/passthrough/vtd/extern.h      Thu May 06 11:43:54 2010 +0100
+++ b/xen/drivers/passthrough/vtd/extern.h      Thu May 06 11:44:42 2010 +0100
@@ -48,7 +48,6 @@ struct acpi_drhd_unit * ioapic_to_drhd(u
 struct acpi_drhd_unit * ioapic_to_drhd(unsigned int apic_id);
 struct acpi_drhd_unit * iommu_to_drhd(struct iommu *iommu);
 struct acpi_rhsa_unit * drhd_to_rhsa(struct acpi_drhd_unit *drhd);
-void clear_fault_bits(struct iommu *iommu);
 int ats_device(int seg, int bus, int devfn);
 int enable_ats_device(int seg, int bus, int devfn);
 int disable_ats_device(int seg, int bus, int devfn);
diff -r 69c85f5b0a07 -r 7e18b2bb7fe0 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Thu May 06 11:43:54 2010 +0100
+++ b/xen/drivers/passthrough/vtd/iommu.c       Thu May 06 11:44:42 2010 +0100
@@ -109,7 +109,7 @@ static int context_set_domain_id(struct 
     return 0;
 }
 
-static struct intel_iommu *alloc_intel_iommu(void)
+static struct intel_iommu *__init alloc_intel_iommu(void)
 {
     struct intel_iommu *intel;
 
@@ -124,7 +124,7 @@ static struct intel_iommu *alloc_intel_i
     return intel;
 }
 
-static void free_intel_iommu(struct intel_iommu *intel)
+static void __init free_intel_iommu(struct intel_iommu *intel)
 {
     xfree(intel);
 }
@@ -1037,7 +1037,7 @@ static int iommu_set_interrupt(struct io
     return irq;
 }
 
-static int iommu_alloc(struct acpi_drhd_unit *drhd)
+static int __init iommu_alloc(struct acpi_drhd_unit *drhd)
 {
     struct iommu *iommu;
     unsigned long sagaw, nr_dom;
@@ -1131,7 +1131,7 @@ static int iommu_alloc(struct acpi_drhd_
     return 0;
 }
 
-static void iommu_free(struct acpi_drhd_unit *drhd)
+static void __init iommu_free(struct acpi_drhd_unit *drhd)
 {
     struct iommu *iommu = drhd->iommu;
 
@@ -1779,7 +1779,7 @@ static void setup_dom0_devices(struct do
     spin_unlock(&pcidevs_lock);
 }
 
-void clear_fault_bits(struct iommu *iommu)
+static void clear_fault_bits(struct iommu *iommu)
 {
     u64 val;
     unsigned long flags;
@@ -1912,7 +1912,7 @@ static void setup_dom0_rmrr(struct domai
     spin_unlock(&pcidevs_lock);
 }
 
-static void platform_quirks(void)
+static void __init platform_quirks(void)
 {
     u32 id;
 
@@ -1925,7 +1925,7 @@ static void platform_quirks(void)
     }
 }
 
-int intel_vtd_setup(void)
+int __init intel_vtd_setup(void)
 {
     struct acpi_drhd_unit *drhd;
     struct iommu *iommu;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] iommu: add missing __init annotations, Xen patchbot-unstable <=