Re: [RFC PATCH v2 2/3] livepatch: Unify functions for writing and clearing object relocations

2019-10-02 Thread Petr Mladek
On Thu 2019-09-05 14:45:13, Miroslav Benes wrote: > Functions klp_write_object_relocations() and > klp_clear_object_relocations() share a lot of code. Take the code out to > a common function and provide the specific actions through callbacks. > > Signed-off-by: Miroslav Benes I would prefer whe

[RFC PATCH v2 2/3] livepatch: Unify functions for writing and clearing object relocations

2019-09-05 Thread Miroslav Benes
Functions klp_write_object_relocations() and klp_clear_object_relocations() share a lot of code. Take the code out to a common function and provide the specific actions through callbacks. Signed-off-by: Miroslav Benes --- kernel/livepatch/core.c | 84 + 1