aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/livepatch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h
index a8828652f794..bd830d590465 100644
--- a/include/linux/livepatch.h
+++ b/include/linux/livepatch.h
@@ -134,6 +134,15 @@ int klp_unregister_patch(struct klp_patch *);
134int klp_enable_patch(struct klp_patch *); 134int klp_enable_patch(struct klp_patch *);
135int klp_disable_patch(struct klp_patch *); 135int klp_disable_patch(struct klp_patch *);
136 136
137/* Called from the module loader during module coming/going states */
138int klp_module_coming(struct module *mod);
139void klp_module_going(struct module *mod);
140
141#else /* !CONFIG_LIVEPATCH */
142
143static inline int klp_module_coming(struct module *mod) { return 0; }
144static inline void klp_module_going(struct module *mod) { }
145
137#endif /* CONFIG_LIVEPATCH */ 146#endif /* CONFIG_LIVEPATCH */
138 147
139#endif /* _LINUX_LIVEPATCH_H_ */ 148#endif /* _LINUX_LIVEPATCH_H_ */