lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6fc7e35882693c30f7f7adad20838a123fac29c3.1393493276.git.rashika.kheria@gmail.com>
Date:	Thu, 27 Feb 2014 17:09:03 +0530
From:	Rashika Kheria <rashika.kheria@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	Peter Oberparleiter <oberpar@...ux.vnet.ibm.com>,
	josh@...htriplett.org
Subject: [PATCH 11/46] kernel: Add prototype declaration in kernel/gcov/base.c

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.kheria@...il.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 majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ