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-devel

[Xen-devel] [PATCH 17/18] xen/apic: checkpatch cleanups

To: Ingo Molnar <mingo@xxxxxxx>
Subject: [Xen-devel] [PATCH 17/18] xen/apic: checkpatch cleanups
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Thu, 7 May 2009 14:14:42 -0700
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, the arch/x86 maintainers <x86@xxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Delivery-date: Thu, 07 May 2009 16:19:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1241730883-4917-1-git-send-email-jeremy@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1241730883-4917-1-git-send-email-jeremy@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>

Clean up mostly whitespace issues.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
---
 arch/x86/xen/apic.c  |    4 ++--
 arch/x86/xen/pci.c   |    4 ++--
 drivers/xen/events.c |    7 ++++---
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c
index 3f890c4..496f07d 100644
--- a/arch/x86/xen/apic.c
+++ b/arch/x86/xen/apic.c
@@ -53,8 +53,8 @@ void xen_init_apic(void)
 #ifdef CONFIG_ACPI
        /*
         * Pretend ACPI found our lapic even though we've disabled it,
-        * to prevent MP tables from setting up lapics.
-        */
+        * to prevent MP tables from setting up lapics.
+        */
        acpi_lapic = 1;
 #endif
 }
diff --git a/arch/x86/xen/pci.c b/arch/x86/xen/pci.c
index 69b475b..5b9ee11 100644
--- a/arch/x86/xen/pci.c
+++ b/arch/x86/xen/pci.c
@@ -66,13 +66,13 @@ void __init xen_setup_pirqs(void)
        int irq;
 
        if (0 == nr_ioapics) {
-               for (irq=0; irq < NR_IRQS_LEGACY; irq++)
+               for (irq = 0; irq < NR_IRQS_LEGACY; irq++)
                        xen_allocate_pirq(irq, "xt-pic");
                return;
        }
 
        /* Pre-allocate legacy irqs */
-       for (irq=0; irq < NR_IRQS_LEGACY; irq++) {
+       for (irq = 0; irq < NR_IRQS_LEGACY; irq++) {
                int trigger, polarity;
 
                if (acpi_get_override_irq(irq, &trigger, &polarity) == -1)
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index b8fd514..febab09 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -514,7 +514,7 @@ static int find_irq_by_gsi(unsigned gsi)
 {
        int irq;
 
-       for(irq = 0; irq < nr_irqs; irq++) {
+       for (irq = 0; irq < nr_irqs; irq++) {
                struct irq_info *info = info_for_irq(irq);
 
                if (info == NULL || info->type != IRQT_PIRQ)
@@ -1181,8 +1181,9 @@ void __init xen_init_IRQ(void)
        cpu_evtchn_mask_p = alloc_bootmem(size);
        irq_info = alloc_bootmem(nr_irqs * sizeof(*irq_info));
 
-       evtchn_to_irq = alloc_bootmem(NR_EVENT_CHANNELS * 
sizeof(*evtchn_to_irq));
-       for(i = 0; i < NR_EVENT_CHANNELS; i++)
+       evtchn_to_irq = alloc_bootmem(NR_EVENT_CHANNELS *
+                                     sizeof(*evtchn_to_irq));
+       for (i = 0; i < NR_EVENT_CHANNELS; i++)
                evtchn_to_irq[i] = -1;
 
        init_evtchn_cpu_bindings();
-- 
1.6.0.6


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