]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: Shuffle klp_enable_patch()/klp_disable_patch() code
authorPetr Mladek <pmladek@suse.com>
Wed, 9 Jan 2019 12:43:20 +0000 (13:43 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 11 Jan 2019 19:51:23 +0000 (20:51 +0100)
commite389990ad43ffbd25787a91c55b5f3215ca799ef
treec9358b5d626b51f837e3651a25d4c70cfe695cb0
parentef190af0dcd6a08267966188c32c2fe5b3b6da6a
livepatch: Shuffle klp_enable_patch()/klp_disable_patch() code

We are going to simplify the API and code by removing the registration
step. This would require calling init/free functions from enable/disable
ones.

This patch just moves the code to prevent more forward declarations.

This patch does not change the code except for two forward declarations.

Signed-off-by: Petr Mladek <pmladek@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/core.c