Add prototype declarations of functions in kernel/gcov/base.c. These functions are required by GCC builtins and hence can not be removed despite of their unreferenced appearance in kernel source.
This eliminates the following warning in kernel/gcov/base.c: kernel/gcov/base.c:30:6: warning: no previous prototype for ‘__gcov_init’ [-Wmissing-prototypes] kernel/gcov/base.c:58:6: warning: no previous prototype for ‘__gcov_flush’ [-Wmissing-prototypes] kernel/gcov/base.c:64:6: warning: no previous prototype for ‘__gcov_merge_add’ [-Wmissing-prototypes] kernel/gcov/base.c:70:6: warning: no previous prototype for ‘__gcov_merge_single’ [-Wmissing-prototypes] kernel/gcov/base.c:76:6: warning: no previous prototype for‘__gcov_merge_delta’ [-Wmissing-prototypes] kernel/gcov/base.c:82:6: warning: no previous prototype for ‘__gcov_merge_ior’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.khe...@gmail.com> --- kernel/gcov/base.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/gcov/base.c b/kernel/gcov/base.c index f45b75b..c0cb53a 100644 --- a/kernel/gcov/base.c +++ b/kernel/gcov/base.c @@ -27,6 +27,7 @@ static DEFINE_MUTEX(gcov_lock); * __gcov_init is called by gcc-generated constructor code for each object * file compiled with -fprofile-arcs. */ +void __gcov_init(struct gcov_info *info); void __gcov_init(struct gcov_info *info) { static unsigned int gcov_version; @@ -55,30 +56,35 @@ EXPORT_SYMBOL(__gcov_init); * These functions may be referenced by gcc-generated profiling code but serve * no function for kernel profiling. */ +void __gcov_flush(void); void __gcov_flush(void) { /* Unused. */ } EXPORT_SYMBOL(__gcov_flush); +void __gcov_merge_add(gcov_type *counters, unsigned int n_counters); void __gcov_merge_add(gcov_type *counters, unsigned int n_counters) { /* Unused. */ } EXPORT_SYMBOL(__gcov_merge_add); +void __gcov_merge_single(gcov_type *counters, unsigned int n_counters); void __gcov_merge_single(gcov_type *counters, unsigned int n_counters) { /* Unused. */ } EXPORT_SYMBOL(__gcov_merge_single); +void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters); void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters) { /* Unused. */ } EXPORT_SYMBOL(__gcov_merge_delta); +void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters); void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters) { /* Unused. */ -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/