Messages in this thread Patch in this message | | | Subject | [PATCH 1/9 -tip] x86: mtrr/amd.c fix trivial style problems | From | Jaswinder Singh Rajput <> | Date | Sat, 04 Jul 2009 07:50:00 +0530 |
| |
Fix trivial style problems :
ERROR: trailing whitespace WARNING: line over 80 characters ERROR: do not use C99 // comments
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> --- arch/x86/kernel/cpu/mtrr/amd.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kernel/cpu/mtrr/amd.c b/arch/x86/kernel/cpu/mtrr/amd.c index ee2331b..85105d3 100644 --- a/arch/x86/kernel/cpu/mtrr/amd.c +++ b/arch/x86/kernel/cpu/mtrr/amd.c @@ -71,7 +71,7 @@ static void amd_set_mtrr(unsigned int reg, unsigned long base, /* Set the register to the base, the type (off by one) and an inverted bitmask of the size The size is the only odd bit. We are fed say 512K We invert this and we get 111 1111 - 1111 1011 but if you subtract one and invert you get the + 1111 1011 but if you subtract one and invert you get the desired 111 1111 1111 1100 mask But ~(x - 1) == ~x + 1 == -x. Two's complement rocks! */ @@ -86,7 +86,8 @@ static void amd_set_mtrr(unsigned int reg, unsigned long base, wrmsr(MSR_K6_UWCCR, regs[0], regs[1]); } -static int amd_validate_add_page(unsigned long base, unsigned long size, unsigned int type) +static int amd_validate_add_page(unsigned long base, unsigned long size, + unsigned int type) { /* Apply the K6 block alignment and size rules In order @@ -115,5 +116,3 @@ int __init amd_init_mtrr(void) set_mtrr_ops(&amd_mtrr_ops); return 0; } - -//arch_initcall(amd_mtrr_init); -- 1.6.0.6
| |