]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - init/main.c
static_key: WARN on usage before jump_label_init was called
[karo-tx-linux.git] / init / main.c
index af310afbef2867e987973cc341a7b418f7413068..27bbec1a5b35d56c8f93107efaf116bfe76bf946 100644 (file)
@@ -135,6 +135,13 @@ static char *static_command_line;
 static char *execute_command;
 static char *ramdisk_execute_command;
 
+/*
+ * Used to generate warnings if static_key manipulation functions are used
+ * before jump_label_init is called.
+ */
+bool static_key_initialized __read_mostly = false;
+EXPORT_SYMBOL_GPL(static_key_initialized);
+
 /*
  * If set, this is an indication to the drivers that reset the underlying
  * device before going ahead with the initialization otherwise driver might