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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 27 Feb 2014 17:50:47 +0530
From:	Rashika Kheria <rashika.kheria@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	Rashika Kheria <rashika.kheria@...il.com>,
	Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
	Sasha Levin <sasha.levin@...cle.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	Sahara <keun-o.park@...driver.com>, josh@...htriplett.org
Subject: [PATCH 36/46] kernel: Mark functions as static in kernel/tracepoint.c

Mark functions as static in kernel/tracepoint.c because they are not
used outside this file.

This eliminates the following warning in kernel/tracepoint.c:
kernel/tracepoint.c:326:6: warning: no previous prototype for ‘module_update_tracepoints’ [-Wmissing-prototypes]
kernel/tracepoint.c:702:5: warning: no previous prototype for ‘tracepoint_module_notify’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@...il.com>
Reviewed-by: Josh Triplett <josh@...htriplett.org>
---
 kernel/tracepoint.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index 29f2654..0e26255 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -323,7 +323,7 @@ static void tracepoint_update_probe_range(struct tracepoint * const *begin,
 }
 
 #ifdef CONFIG_MODULES
-void module_update_tracepoints(void)
+static void module_update_tracepoints(void)
 {
 	struct tp_module *tp_mod;
 
@@ -332,7 +332,7 @@ void module_update_tracepoints(void)
 			tp_mod->tracepoints_ptrs + tp_mod->num_tracepoints);
 }
 #else /* CONFIG_MODULES */
-void module_update_tracepoints(void)
+static void module_update_tracepoints(void)
 {
 }
 #endif /* CONFIG_MODULES */
@@ -699,7 +699,7 @@ static int tracepoint_module_going(struct module *mod)
 	return 0;
 }
 
-int tracepoint_module_notify(struct notifier_block *self,
+static int tracepoint_module_notify(struct notifier_block *self,
 			     unsigned long val, void *data)
 {
 	struct module *mod = data;
-- 
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