Re: [PATCH 5/6] x86: coding style fixes to arch/x86/kernel/traps_64.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Thursday, July 31, 2008 - 9:31 am

* Gustavo F. Padovan <gustavo@las.ic.unicamp.br> wrote:


careful with line 80 warnings. This one is better broken up the 
following way:

	printk(" [<%016lx>] %s%pS\n",
	       address, reliable ? "": "? ", (void *) address);

so that logically coherent pieces of code stay together. (the arguments 
to the printk() function call in this case)


this too is done better in another way:

	[N_EXCEPTION_STACKS ... 
	 N_EXCEPTION_STACKS + DEBUG_STKSZ / EXCEPTION_STKSZ - 2] = "#DB[?]"


please use the standard multi-line comment format:

	/*
	 * Multi-line ...........
	 * .............. comment.
	 */

i've applied your patches already to x86/cleanups, so please send a 
delta patch against that branch to fix these few items up. You can pick 
it up via:

    http://people.redhat.com/mingo/tip.git/README

and do:

    git-checkout tip/x86/cleanups

to check out that exact tree. (You might also want to work against 
tip/master, which has the same changes.)

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] x86: coding style fixes to arch/x86/kernel/, Gustavo F. Padovan, (Mon Jul 28, 10:48 pm)
[PATCH 1/6] x86: coding styles fixes to arch/x86/kernel/pr ..., Gustavo F. Padovan, (Mon Jul 28, 10:48 pm)
[PATCH 2/6] x86: add KERN_INFO to printks on process_64.c, Gustavo F. Padovan, (Mon Jul 28, 10:48 pm)
[PATCH 3/6] x86: coding style fixes to arch/x86/kernel/cra ..., Gustavo F. Padovan, (Mon Jul 28, 10:48 pm)
[PATCH 4/6] x86: coding style fixes to arch/x86/kernel/sig ..., Gustavo F. Padovan, (Mon Jul 28, 10:48 pm)
[PATCH 5/6] x86: coding style fixes to arch/x86/kernel/tra ..., Gustavo F. Padovan, (Mon Jul 28, 10:48 pm)
[PATCH 6/6] x86: coding style fixes to arch/x86/kernel/sys ..., Gustavo F. Padovan, (Mon Jul 28, 10:48 pm)
Re: [PATCH 5/6] x86: coding style fixes to arch/x86/kernel ..., Ingo Molnar, (Thu Jul 31, 9:31 am)