diff options
-rw-r--r-- | include/linux/jump_label.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index a7f90117cf7d..28e04a33535a 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h | |||
@@ -90,6 +90,13 @@ extern bool static_key_initialized; | |||
90 | struct static_key { | 90 | struct static_key { |
91 | atomic_t enabled; | 91 | atomic_t enabled; |
92 | /* | 92 | /* |
93 | * Note: | ||
94 | * To make anonymous unions work with old compilers, the static | ||
95 | * initialization of them requires brackets. This creates a dependency | ||
96 | * on the order of the struct with the initializers. If any fields | ||
97 | * are added, STATIC_KEY_INIT_TRUE and STATIC_KEY_INIT_FALSE may need | ||
98 | * to be modified. | ||
99 | * | ||
93 | * bit 0 => 1 if key is initially true | 100 | * bit 0 => 1 if key is initially true |
94 | * 0 if initially false | 101 | * 0 if initially false |
95 | * bit 1 => 1 if points to struct static_key_mod | 102 | * bit 1 => 1 if points to struct static_key_mod |