From 56f60b52f607339db14f82f116a9995f15fefa04 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 5 Nov 2013 16:57:41 +1100 Subject: [PATCH] gcov-add-support-for-gcc-47-gcov-format-checkpatch-fixes ERROR: that open brace { should be on the previous line #227: FILE: kernel/gcov/gcc_4_7.c:179: + for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) + { ERROR: that open brace { should be on the previous line #269: FILE: kernel/gcov/gcc_4_7.c:221: + for (fi_idx = 0; fi_idx < src->n_functions; fi_idx++) + { total: 2 errors, 0 warnings, 574 lines checked ./patches/gcov-add-support-for-gcc-47-gcov-format.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Frantisek Hrbata Signed-off-by: Andrew Morton --- kernel/gcov/gcc_4_7.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/gcov/gcc_4_7.c b/kernel/gcov/gcc_4_7.c index 742d17949cf7..a5cddff7b048 100644 --- a/kernel/gcov/gcc_4_7.c +++ b/kernel/gcov/gcc_4_7.c @@ -176,8 +176,7 @@ void gcov_info_reset(struct gcov_info *info) unsigned int fi_idx; unsigned int ct_idx; - for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) - { + for (fi_idx = 0; fi_idx < info->n_functions; fi_idx++) { ci_ptr = info->functions[fi_idx]->ctrs; for (ct_idx = 0; ct_idx < GCOV_COUNTERS; ct_idx++) { @@ -218,8 +217,7 @@ void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) unsigned int ct_idx; unsigned int val_idx; - for (fi_idx = 0; fi_idx < src->n_functions; fi_idx++) - { + for (fi_idx = 0; fi_idx < src->n_functions; fi_idx++) { dci_ptr = dst->functions[fi_idx]->ctrs; sci_ptr = src->functions[fi_idx]->ctrs; -- 2.39.5