linux/arch/x86/kernel/cpu/mtrr
Jaswinder Singh Rajput a1a499a399 x86: Clean up mtrr/generic.c
Fix following trivial style problems:

  ERROR: trailing whitespace X 4
  WARNING: Use #include <linux/io.h> instead of <asm/io.h>
  WARNING: braces {} are not necessary for single statement blocks X 3
  ERROR: "foo * bar" should be "foo *bar"
  WARNING: line over 80 characters X 6
  ERROR: "foo * bar" should be "foo *bar"
  ERROR: spaces required around that '=' (ctx:VxO)
  ERROR: space required before that '-' (ctx:OxV)
  WARNING: suspect code indent for conditional statements (8, 12)
  ERROR: spaces required around that '=' (ctx:VxV)
  ERROR: do not initialise statics to 0 or NULL
  ERROR: space prohibited after that open parenthesis '(' X 2
  ERROR: space prohibited before that close parenthesis ')' X 2
  ERROR: trailing statements should be on next line
  ERROR: return is not a function, parentheses are not required

Also use pr_debug and pr_warning where possible.

arch/x86/kernel/cpu/mtrr/generic.o:

   text	   data	    bss	    dec	    hex	filename
   5652	     77	   4224	   9953	   26e1	generic.o.before
   5652	     77	   4220	   9949	   26dd	generic.o.after

The md5 changed:
   b34d6c045f06daa4ed092b90cc760e8f  generic.o.before.asm
   a490c6251cfd8442fbffecc0e09a573d  generic.o.after.asm

Because mtrr_state moved from data to bss, changing its
offsets - and also because __LINE__ numbers changed.

Suggested-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20090703164225.GA21447@elte.hu>
[ Further cleanups to make the code more consistent ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-07-04 11:10:47 +02:00
..
amd.c x86: Clean up mtrr/amd.c: 2009-07-04 11:10:45 +02:00
centaur.c x86: Clean up mtrr/centaur.c 2009-07-04 11:10:45 +02:00
cleanup.c x86: Clean up mtrr/cleanup.c 2009-07-04 11:10:46 +02:00
cyrix.c x86: Clean up mtrr/cyrix.c 2009-07-04 11:10:47 +02:00
generic.c x86: Clean up mtrr/generic.c 2009-07-04 11:10:47 +02:00
if.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
main.c x86, mtrr: replace MTRRcap_MSR with msr-index's MSR_MTRRcap 2009-05-15 07:49:00 -07:00
Makefile x86: separate mtrr cleanup/mtrr_e820 trim to separate file 2009-03-13 02:52:19 +01:00
mtrr.h x86, mtrr: replace MTRRdefType_MSR with msr-index's MSR_MTRRdefType 2009-05-15 07:49:01 -07:00
state.c x86, mtrr: replace MTRRdefType_MSR with msr-index's MSR_MTRRdefType 2009-05-15 07:49:01 -07:00