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
Needed if pr_<level> becomes a bit more space efficient.
--- 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*" : " ",
Quoted 12 lines · Joe Perches
Needed if pr_<level> becomes a bit more space efficient.
Signed-off-by Joe Perches <[email protected]>--- arch/x86/kernel/cpu/mtrr/cleanup.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)arch/x86/kernel/cpu/mtrr/cleanup.c +0
-0
arch/x86/kernel/cpu/mtrr/cleanup.c static void __init mtrr_print_out_one_result(int i) · line 637
Quoted 9 lines
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);
That file and this subsystem needs a lot more cleanups than just this. Would you be willing to do them all, so that we can get over with the churn in a single well-defined patch (or patches)?
I dont see much point in piecemail single-comma patches - i'd rather wait for someone else who'd fix this and other details in one go.
Thanks,
Ingo
Quoted 6 lines · Ingo Molnar
That file and this subsystem needs a lot more cleanups than just this. Would you be willing to do them all, so that we can get over with the churn in a single well-defined patch (or patches)?
I dont see much point in piecemail single-comma patches - i'd rather wait for someone else who'd fix this and other details in one go.
I don't see significant style issues in mtrr
$ git ls-files arch/x86/kernel/cpu/mtrr/ | \ xargs ./scripts/checkpatch.pl -f
What do you think needs improving?git ls-files arch/x86/kernel/cpu/mtrr/ | \
xargs ./scripts/checkpatch.pl -f
Quoted 28 lines · Ingo Molnar
Quoted 12 lines · Joe Perches
Needed if pr_<level> becomes a bit more space efficient.
Signed-off-by Joe Perches <[email protected]>--- arch/x86/kernel/cpu/mtrr/cleanup.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)arch/x86/kernel/cpu/mtrr/cleanup.c +0
-0arch/x86/kernel/cpu/mtrr/cleanup.c static void __init mtrr_print_out_one_result(int i) · line 637
Quoted 9 lines
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);That file and this subsystem needs a lot more cleanups than just this. Would you be willing to do them all, so that we can get over with the churn in a single well-defined patch (or patches)?
Quoted 2 lines
I dont see much point in piecemail single-comma patches - i'd rather wait for someone else who'd fix this and other details in one go.
This is the only "," preceeding a pr_<level> printk in the kernel tree.
The comma prevents the pr_<level> macro to take the "do { foo } while (0)" form.
I don't see significant issues in the code style that need cleanups in arch/x86/kernel/cpu/mtrr.
What do you think needs cleaning?
[tip:x86/cleanups] x86: Clean up arch/x86/kernel/cpu/mtrr/cleanup.c: use ";" not "," to terminate statements
In reply to Joe PerchesCommit-ID: b2691085d1f3ccce641dcfdd02722ba5d34db6ba Gitweb: http://git.kernel.org/tip/b2691085d1f3ccce641dcfdd02722ba5d34db6ba Author: Joe Perches <[email protected]> AuthorDate: Mon, 28 Jun 2010 16:46:48 -0700 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 15 Jul 2010 18:21:22 +0200
x86: Clean up arch/x86/kernel/cpu/mtrr/cleanup.c: use ";" not "," to terminate statements
Also needed if pr_<level> becomes a bit more space efficient.
LKML-Reference: <[email protected]>
--- 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*" : " ",