summaryrefslogtreecommitdiff
path: root/src/lib/gcov-io.h
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-10 15:31:56 -0800
committerMartin Roth <martinroth@google.com>2017-03-13 17:21:16 +0100
commit342f8d6e507b1a5c8dfd3f48936fed32ed0997e4 (patch)
tree55c65abbc6fade0e8b6b389bae4b639c5d360401 /src/lib/gcov-io.h
parentbab6bc4d77fbc260e972420ba1e5bbe03e5087ea (diff)
downloadcoreboot-342f8d6e507b1a5c8dfd3f48936fed32ed0997e4.tar.xz
src/lib: Fix brace positions
Fix the following errors detected by checkpatch.pl: ERROR: open brace '{' following function declarations go on the next line ERROR: that open brace { should be on the previous line ERROR: open brace '{' following struct go on the same line ERROR: else should follow close brace '}' TEST=Build and run on Galileo Gen2 Change-Id: I971ada9ba9ba7ce5d8029323710fee1a6166570b Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18759 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib/gcov-io.h')
-rw-r--r--src/lib/gcov-io.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/gcov-io.h b/src/lib/gcov-io.h
index f5f3a33938..e2c0e0d756 100644
--- a/src/lib/gcov-io.h
+++ b/src/lib/gcov-io.h
@@ -406,8 +406,7 @@ typedef HOST_WIDEST_INT gcov_type;
/* Structured records. */
/* Cumulative counter data. */
-struct gcov_ctr_summary
-{
+struct gcov_ctr_summary {
gcov_unsigned_t num; /* number of counters. */
gcov_unsigned_t runs; /* number of program runs */
gcov_type sum_all; /* sum of all counters accumulated. */
@@ -416,8 +415,7 @@ struct gcov_ctr_summary
};
/* Object & program summary record. */
-struct gcov_summary
-{
+struct gcov_summary {
gcov_unsigned_t checksum; /* checksum of program */
struct gcov_ctr_summary ctrs[GCOV_COUNTERS_SUMMABLE];
};
@@ -427,8 +425,7 @@ struct gcov_summary
#if IN_LIBGCOV
/* Information about counters for a single function. */
-struct gcov_ctr_info
-{
+struct gcov_ctr_info {
gcov_unsigned_t num; /* number of counters. */
gcov_type *values; /* their values. */
};
@@ -439,8 +436,7 @@ struct gcov_ctr_info
comdat functions was selected -- it points to the gcov_info object
of the object file containing the selected comdat function. */
-struct gcov_fn_info
-{
+struct gcov_fn_info {
const struct gcov_info *key; /* comdat key */
gcov_unsigned_t ident; /* unique ident of function */
gcov_unsigned_t lineno_checksum; /* function lineo_checksum */
@@ -452,8 +448,7 @@ struct gcov_fn_info
typedef void (*gcov_merge_fn) (gcov_type *, gcov_unsigned_t);
/* Information about a single object file. */
-struct gcov_info
-{
+struct gcov_info {
gcov_unsigned_t version; /* expected version number */
struct gcov_info *next; /* link to next, used by libgcov */