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] vt-d: Remove unnecessary 'inline' qualifi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] vt-d: Remove unnecessary 'inline' qualifiers
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Jan 2011 07:59:24 -0800
Delivery-date: Mon, 17 Jan 2011 08:11:35 -0800
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@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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] vt-d: Remove unnecessary 'inline' qualifiers, Xen patchbot-unstable <=