livepatch: make klp_mutex proper part of API
authorJiri Kosina <jkosina@suse.cz>
Wed, 8 Mar 2017 13:27:05 +0000 (14:27 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 8 Mar 2017 13:40:53 +0000 (14:40 +0100)
commit10517429b5ac242498d7d847f79f10c21d7eedb0
tree427cab53a01e6f199b462d7dfb3eddbd99a91bec
parent3ec24776bfd09668079df7dca0c0136d80820ab4
livepatch: make klp_mutex proper part of API

klp_mutex is shared between core.c and transition.c, and as such would
rather be properly located in a header so that we don't have to play
'extern' games from .c sources.

This also silences sparse warning (wrongly) suggesting that klp_mutex
should be defined static.

Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/core.c
kernel/livepatch/core.h [new file with mode: 0644]
kernel/livepatch/transition.c