diff options
author | Jiri Kosina <jkosina@suse.cz> | 2017-03-08 14:27:05 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-03-08 14:40:53 +0100 |
commit | 10517429b5ac242498d7d847f79f10c21d7eedb0 (patch) | |
tree | 427cab53a01e6f199b462d7dfb3eddbd99a91bec /kernel/livepatch/core.h | |
parent | livepatch: allow removal of a disabled patch (diff) | |
download | linux-10517429b5ac242498d7d847f79f10c21d7eedb0.tar.xz linux-10517429b5ac242498d7d847f79f10c21d7eedb0.zip |
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.h')
-rw-r--r-- | kernel/livepatch/core.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/livepatch/core.h b/kernel/livepatch/core.h new file mode 100644 index 000000000000..c74f24c47837 --- /dev/null +++ b/kernel/livepatch/core.h @@ -0,0 +1,6 @@ +#ifndef _LIVEPATCH_CORE_H +#define _LIVEPATCH_CORE_H + +extern struct mutex klp_mutex; + +#endif /* _LIVEPATCH_CORE_H */ |