diff options
author | Martin Liska <mliska@suse.cz> | 2017-05-12 18:46:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-12 18:57:15 -0400 |
commit | 05384213436ab690c46d9dfec706b80ef8d671ab (patch) | |
tree | 1b12de5427b1a858e67f16e5199e82b309b2009f /kernel/gcov/base.c | |
parent | 8d35bb310698c69d73073b26fc581f2e3f7f621d (diff) |
gcov: support GCC 7.1
Starting from GCC 7.1, __gcov_exit is a new symbol expected to be
implemented in a profiling runtime.
[akpm@linux-foundation.org: coding-style fixes]
[mliska@suse.cz: v2]
Link: http://lkml.kernel.org/r/e63a3c59-0149-c97e-4084-20ca8f146b26@suse.cz
Link: http://lkml.kernel.org/r/8c4084fa-3885-29fe-5fc4-0d4ca199c785@suse.cz
Signed-off-by: Martin Liska <mliska@suse.cz>
Acked-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/gcov/base.c')
-rw-r--r-- | kernel/gcov/base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/gcov/base.c b/kernel/gcov/base.c index 2f9df37940a0..c51a49c9be70 100644 --- a/kernel/gcov/base.c +++ b/kernel/gcov/base.c | |||
@@ -98,6 +98,12 @@ void __gcov_merge_icall_topn(gcov_type *counters, unsigned int n_counters) | |||
98 | } | 98 | } |
99 | EXPORT_SYMBOL(__gcov_merge_icall_topn); | 99 | EXPORT_SYMBOL(__gcov_merge_icall_topn); |
100 | 100 | ||
101 | void __gcov_exit(void) | ||
102 | { | ||
103 | /* Unused. */ | ||
104 | } | ||
105 | EXPORT_SYMBOL(__gcov_exit); | ||
106 | |||
101 | /** | 107 | /** |
102 | * gcov_enable_events - enable event reporting through gcov_event() | 108 | * gcov_enable_events - enable event reporting through gcov_event() |
103 | * | 109 | * |