]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/jump_label.h
Merge tag 'platform-drivers-x86-v4.9-2' of git://git.infradead.org/users/dvhart/linux...
[karo-tx-linux.git] / include / linux / jump_label.h
index a534c7f15a615520d802a78a82fe55d2af8e4cae..a0547c571800e7ca77f9a7ffed9412a16bee9262 100644 (file)
@@ -269,9 +269,15 @@ struct static_key_false {
 #define DEFINE_STATIC_KEY_TRUE(name)   \
        struct static_key_true name = STATIC_KEY_TRUE_INIT
 
+#define DECLARE_STATIC_KEY_TRUE(name)  \
+       extern struct static_key_true name
+
 #define DEFINE_STATIC_KEY_FALSE(name)  \
        struct static_key_false name = STATIC_KEY_FALSE_INIT
 
+#define DECLARE_STATIC_KEY_FALSE(name) \
+       extern struct static_key_false name
+
 #define DEFINE_STATIC_KEY_ARRAY_TRUE(name, count)              \
        struct static_key_true name[count] = {                  \
                [0 ... (count) - 1] = STATIC_KEY_TRUE_INIT,     \