Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765759AbYBTXLR (ORCPT ); Wed, 20 Feb 2008 18:11:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753079AbYBTXLD (ORCPT ); Wed, 20 Feb 2008 18:11:03 -0500 Received: from ug-out-1314.google.com ([66.249.92.175]:28892 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435AbYBTXLA (ORCPT ); Wed, 20 Feb 2008 18:11:00 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:x-mailer:mime-version:content-type:content-transfer-encoding; b=aieZemowQJj3h9bsriSY9sQEDguiKt5gRZh4oedTlwQil+xY22I/vKHhQtBLn4G67s26JkWR/hW+yD83ha+QRc6yFy2kYZPRctxHPBhu6SokOPhR/W2t7pOJAzNoczYxAuY/omj/AWCP7UHx04trEblWogxtqPg0OVGk/oUomV4= Date: Thu, 21 Feb 2008 00:10:54 +0100 From: Paolo Ciarrocchi To: hpa , Ingo Molnar , tglx Cc: Linux Kernel Subject: [PATCH 1/3] x86: Coding style fixes to arch/x86/kernel/cpu/mcheck/p6.c Message-ID: <20080221001054.5ea6c872@paolo-desktop> X-Mailer: Sylpheed-Claws 1.0.5 (GTK+ 1.2.10; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4307 Lines: 141 Hopefully this time the patches will reach the list :-) After the patch: total: 0 errors, 0 warnings, 122 lines checked arch/x86/kernel/cpu/mcheck/p6.c has no obvious style problems and is ready for submission. Compile tested. Signed-off-by: Paolo Ciarrocchi --- arch/x86/kernel/cpu/mcheck/p6.c | 48 +++++++++++++++++++------------------- 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/p6.c b/arch/x86/kernel/cpu/mcheck/p6.c index 7434260..62efc9c 100644 --- a/arch/x86/kernel/cpu/mcheck/p6.c +++ b/arch/x86/kernel/cpu/mcheck/p6.c @@ -9,23 +9,23 @@ #include #include -#include +#include #include #include #include "mce.h" /* Machine Check Handler For PII/PIII */ -static void intel_machine_check(struct pt_regs * regs, long error_code) +static void intel_machine_check(struct pt_regs *regs, long error_code) { - int recover=1; + int recover = 1; u32 alow, ahigh, high, low; u32 mcgstl, mcgsth; int i; - rdmsr (MSR_IA32_MCG_STATUS, mcgstl, mcgsth); + rdmsr(MSR_IA32_MCG_STATUS, mcgstl, mcgsth); if (mcgstl & (1<<0)) /* Recoverable ? */ - recover=0; + recover = 0; printk(KERN_EMERG "CPU %d: Machine Check Exception: %08x%08x\n", smp_processor_id(), mcgsth, mcgstl); @@ -55,30 +55,30 @@ static void intel_machine_check(struct pt_regs * regs, long error_code) } if (recover & 2) - panic ("CPU context corrupt"); + panic("CPU context corrupt"); if (recover & 1) - panic ("Unable to continue"); + panic("Unable to continue"); - printk (KERN_EMERG "Attempting to continue.\n"); - /* - * Do not clear the MSR_IA32_MCi_STATUS if the error is not + printk(KERN_EMERG "Attempting to continue.\n"); + /* + * Do not clear the MSR_IA32_MCi_STATUS if the error is not * recoverable/continuable.This will allow BIOS to look at the MSRs * for errors if the OS could not log the error. */ - for (i=0; i