summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2013-11-05 16:57:41 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-11-05 16:57:41 +1100
commit56f60b52f607339db14f82f116a9995f15fefa04 (patch)
tree316cb5701fe7af630b5b204fdb19e88e1dd9d035 /kernel
parentfe1d17941322330b4721478ab991337bc33bb610 (diff)
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 <fhrbata@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/gcov/gcc_4_7.c6
1 files 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;