Skip to contentSkip to conversation

kernel/jump_label.c: declare jump_label_module_nb as static

PATCH New Michele Curti 1 participant 1 message Oct 15, 2014 Static branch/call

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/jump_label.c: declare jump_label_module_nb as static

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

---
 kernel/jump_label.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/jump_label.c +1 -1
index 9019f15..d7ac148 100644
@@ -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 */
 };
Signature · 4 lines
2.1.2

Regards,
Michele