diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/livepatch.h | 9 |
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 *); | |||
| 134 | int klp_enable_patch(struct klp_patch *); | 134 | int klp_enable_patch(struct klp_patch *); |
| 135 | int klp_disable_patch(struct klp_patch *); | 135 | int klp_disable_patch(struct klp_patch *); |
| 136 | 136 | ||
| 137 | /* Called from the module loader during module coming/going states */ | ||
| 138 | int klp_module_coming(struct module *mod); | ||
| 139 | void klp_module_going(struct module *mod); | ||
| 140 | |||
| 141 | #else /* !CONFIG_LIVEPATCH */ | ||
| 142 | |||
| 143 | static inline int klp_module_coming(struct module *mod) { return 0; } | ||
| 144 | static 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_ */ |
