gcov: move gcov structs definitions to a gcc version specific file
authorFrantisek Hrbata <fhrbata@redhat.com>
Tue, 12 Nov 2013 23:11:24 +0000 (15:11 -0800)
committerMark Brown <broonie@kernel.org>
Tue, 17 Mar 2015 21:50:55 +0000 (21:50 +0000)
commit2d3bc982a1908dd121739918b97192a418717514
tree319a87d3ba7005cb09a004938822d2be27dbc569
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376
gcov: move gcov structs definitions to a gcc version specific file

Since also the gcov structures(gcov_info, gcov_fn_info, gcov_ctr_info) can
change between gcc releases, as shown in gcc 4.7, they cannot be defined
in a common header and need to be moved to a specific gcc implemention
file.  This also requires to make the gcov_info structure opaque for the
common code and to introduce simple helpers for accessing data inside
gcov_info.

Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
Cc: Jan Stancek <jstancek@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Acked-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Andy Gospodarek <agospoda@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 8cbce376e3fdf4a21f59365aefbb52eac3c2e312)
Signed-off-by: Mark Brown <broonie@kernel.org>
kernel/gcov/base.c
kernel/gcov/fs.c
kernel/gcov/gcc_3_4.c
kernel/gcov/gcov.h