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: Do not initialise global vars expl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] iommu: Do not initialise global vars explicitly to zero.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Oct 2009 10:35:14 -0700
Delivery-date: Wed, 28 Oct 2009 10:35:40 -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 1256750867 0
# Node ID c1f2b68b6dcaf6f04fbd92da29ab253d0de501dc
# Parent  62313648c9f5bb6fc1a9b3a8f3fca88c13719914
iommu: Do not initialise global vars explicitly to zero.

Unnecessary and prevents them being allocated in BSS rather than data.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/drivers/passthrough/iommu.c |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff -r 62313648c9f5 -r c1f2b68b6dca xen/drivers/passthrough/iommu.c
--- a/xen/drivers/passthrough/iommu.c   Wed Oct 28 17:27:09 2009 +0000
+++ b/xen/drivers/passthrough/iommu.c   Wed Oct 28 17:27:47 2009 +0000
@@ -37,19 +37,20 @@ static int iommu_populate_page_table(str
  *   no-intremap                Disable VT-d Interrupt Remapping
  */
 custom_param("iommu", parse_iommu_param);
-int iommu_enabled = 0;
-int iommu_pv_enabled = 0;
-int force_iommu = 0;
-int iommu_passthrough = 0;
-int iommu_snoop = 0;
-int iommu_qinval = 0;
-int iommu_intremap = 0;
-int amd_iommu_debug = 0;
-int amd_iommu_perdev_intremap = 0;
+int iommu_enabled;
+int iommu_pv_enabled;
+int force_iommu;
+int iommu_passthrough;
+int iommu_snoop;
+int iommu_qinval;
+int iommu_intremap;
+int amd_iommu_debug;
+int amd_iommu_perdev_intremap;
 
 static void __init parse_iommu_param(char *s)
 {
     char *ss;
+
     iommu_enabled = 1;
     iommu_snoop = 1;
     iommu_qinval = 1;

_______________________________________________
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: Do not initialise global vars explicitly to zero., Xen patchbot-unstable <=