arch/x86/kernel/cpu/mtrr/cleanup.c: Use ";" not "," to terminate statements
PATCH 1/1 arch/x86/kernel/cpu/mtrr/cleanup.c: Use ";" not "," to terminate statements
These are the only "," terminated statements that precede a pr_<level> in the kernel tree.
These must be ";" terminated if the pr_<level> macros becomes a bit more space efficient using a "do { foo } while (0)" form.
--- arch/x86/kernel/cpu/mtrr/cleanup.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/kernel/cpu/mtrr/cleanup.c +3 -3
@@ -632,9 +632,9 @@ static void __init mtrr_print_out_one_result(int i)unsigned long gran_base, chunk_base, lose_base;char gran_factor, chunk_factor, lose_factor; - gran_base =to_size_factor (result[i].gran_sizek, &gran_factor), - chunk_base =to_size_factor (result[i].chunk_sizek, &chunk_factor), - lose_base =to_size_factor (result[i].lose_cover_sizek, &lose_factor), + gran_base =to_size_factor (result[i].gran_sizek, &gran_factor); + chunk_base =to_size_factor (result[i].chunk_sizek, &chunk_factor); + lose_base =to_size_factor (result[i].lose_cover_sizek, &lose_factor); pr_info("%sgran_size: %ld%c \tchunk_size: %ld%c \t", result[i].bad ? "*BAD*" : " ",
On Wed, 14 Jul 2010, Joe Perches wrote:
Sorry, but that's one of the most convoluted changelogs I ever saw.
Quoted 2 lines
These are the only "," terminated statements that precede a pr_<level> in the kernel tree.
Errm, why is this related to pr_<level> in any way ?
Quoted 3 lines
These must be ";" terminated if the pr_<level> macros becomes a bit more space efficient using a "do { foo } while (0)" form.
It has absolutely _NOTHING_ to do with any implementation detail of the function/macro which comes after those statements.
Terminating a statement with a comma is simply wrong by itself and it needs to be fixed w/o further ado.
Thanks,
tglx
Quoted 6 lines · Thomas Gleixner
On Wed, 14 Jul 2010, Joe Perches wrote:
that's one of the most convoluted changelogs I ever saw.Quoted 2 lines
These are the only "," terminated statements that
precede a pr_<level> in the kernel tree.Terminating a statement with a comma is simply wrong by itself and it needs to be fixed w/o further ado.
Great. So remove the changelog and just use the subject.
I sent a simpler changelog patch last month.
http://lkml.org/lkml/2010/6/28/349
Ingo rejected it.
He said there were other style problems in the file that needed cleaning. I asked what those style problems were. checkpatch and his "code-quality" script don't show significant issues. No reply from Ingo.