mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
livepatch: create temporary klp_update_patch_state() stub
Create temporary stubs for klp_update_patch_state() so we can add TIF_PATCH_PENDING to different architectures in separate patches without breaking build bisectability. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
3a40484254
commit
46c5a0113f
2 changed files with 7 additions and 1 deletions
|
@ -123,10 +123,13 @@ void arch_klp_init_object_loaded(struct klp_patch *patch,
|
|||
int klp_module_coming(struct module *mod);
|
||||
void klp_module_going(struct module *mod);
|
||||
|
||||
void klp_update_patch_state(struct task_struct *task);
|
||||
|
||||
#else /* !CONFIG_LIVEPATCH */
|
||||
|
||||
static inline int klp_module_coming(struct module *mod) { return 0; }
|
||||
static inline void klp_module_going(struct module *mod) { }
|
||||
static inline void klp_module_going(struct module *mod) {}
|
||||
static inline void klp_update_patch_state(struct task_struct *task) {}
|
||||
|
||||
#endif /* CONFIG_LIVEPATCH */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue