mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel/jump_label.c: declare jump_label_module_nb as static
@ 2014-10-15  8:30 Michele Curti
  0 siblings, 0 replies; only message in thread
From: Michele Curti @ 2014-10-15  8:30 UTC (permalink / raw)
  To: davem; +Cc: linux-kernel, Michele Curti

The structure jump_label_module_nb is used in jump_label.c only,
so declare it as static

Signed-off-by: Michele Curti <michele.curti@gmail.com>
---
 kernel/jump_label.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/jump_label.c b/kernel/jump_label.c
index 9019f15..d7ac148 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -399,7 +399,7 @@ jump_label_module_notify(struct notifier_block *self, unsigned long val,
 	return notifier_from_errno(ret);
 }
 
-struct notifier_block jump_label_module_nb = {
+static struct notifier_block jump_label_module_nb = {
 	.notifier_call = jump_label_module_notify,
 	.priority = 1, /* higher than tracepoints */
 };
-- 
2.1.2

Regards,
Michele


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-15  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-15  8:30 [PATCH] kernel/jump_label.c: declare jump_label_module_nb as static Michele Curti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®