diff options
author | Jiri Kosina <jkosina@suse.cz> | 2017-03-08 08:27:05 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-03-08 08:40:53 -0500 |
commit | 10517429b5ac242498d7d847f79f10c21d7eedb0 (patch) | |
tree | 427cab53a01e6f199b462d7dfb3eddbd99a91bec /kernel/livepatch/core.c | |
parent | 3ec24776bfd09668079df7dca0c0136d80820ab4 (diff) |
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>
Diffstat (limited to 'kernel/livepatch/core.c')
-rw-r--r-- | kernel/livepatch/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c index 6844c1213df8..47402b8b3990 100644 --- a/kernel/livepatch/core.c +++ b/kernel/livepatch/core.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/moduleloader.h> | 31 | #include <linux/moduleloader.h> |
32 | #include <linux/completion.h> | 32 | #include <linux/completion.h> |
33 | #include <asm/cacheflush.h> | 33 | #include <asm/cacheflush.h> |
34 | #include "core.h" | ||
34 | #include "patch.h" | 35 | #include "patch.h" |
35 | #include "transition.h" | 36 | #include "transition.h" |
36 | 37 | ||