[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] vt-d: Remove unnecessary 'inline' qualifiers



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1294655873 0
# Node ID 1ae74f060a39ae1305b3a434d0faa1a19853fdab
# Parent  f5b3fc5a52202a869a9e674ae5705aa8a3dd7328
vt-d: Remove unnecessary 'inline' qualifiers

Compiler knows best when to inline. Also this shows up an unused flush
function which is removed by this patch.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---
 xen/drivers/passthrough/vtd/iommu.c |   18 +++++-------------
 1 files changed, 5 insertions(+), 13 deletions(-)

diff -r f5b3fc5a5220 -r 1ae74f060a39 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Mon Jan 10 10:32:04 2011 +0000
+++ b/xen/drivers/passthrough/vtd/iommu.c       Mon Jan 10 10:37:53 2011 +0000
@@ -389,7 +389,7 @@ static int flush_context_reg(
     return 0;
 }
 
-static int inline iommu_flush_context_global(
+static int iommu_flush_context_global(
     struct iommu *iommu, int flush_non_present_entry)
 {
     struct iommu_flush *flush = iommu_get_flush(iommu);
@@ -397,15 +397,7 @@ static int inline iommu_flush_context_gl
                                  flush_non_present_entry);
 }
 
-static int inline iommu_flush_context_domain(
-    struct iommu *iommu, u16 did, int flush_non_present_entry)
-{
-    struct iommu_flush *flush = iommu_get_flush(iommu);
-    return flush->context(iommu, did, 0, 0, DMA_CCMD_DOMAIN_INVL,
-                                 flush_non_present_entry);
-}
-
-static int inline iommu_flush_context_device(
+static int iommu_flush_context_device(
     struct iommu *iommu, u16 did, u16 source_id,
     u8 function_mask, int flush_non_present_entry)
 {
@@ -482,7 +474,7 @@ static int flush_iotlb_reg(void *_iommu,
     return 0;
 }
 
-static int inline iommu_flush_iotlb_global(struct iommu *iommu,
+static int iommu_flush_iotlb_global(struct iommu *iommu,
     int flush_non_present_entry, int flush_dev_iotlb)
 {
     struct iommu_flush *flush = iommu_get_flush(iommu);
@@ -500,7 +492,7 @@ static int inline iommu_flush_iotlb_glob
     return status;
 }
 
-static int inline iommu_flush_iotlb_dsi(struct iommu *iommu, u16 did,
+static int iommu_flush_iotlb_dsi(struct iommu *iommu, u16 did,
     int flush_non_present_entry, int flush_dev_iotlb)
 {
     struct iommu_flush *flush = iommu_get_flush(iommu);
@@ -518,7 +510,7 @@ static int inline iommu_flush_iotlb_dsi(
     return status;
 }
 
-static int inline iommu_flush_iotlb_psi(
+static int iommu_flush_iotlb_psi(
     struct iommu *iommu, u16 did, u64 addr, unsigned int order,
     int flush_non_present_entry, int flush_dev_iotlb)
 {

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.