diff options
-rw-r--r-- | include/linux/static_call.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/static_call.h b/include/linux/static_call.h index 022842436880..c95c1b83e27a 100644 --- a/include/linux/static_call.h +++ b/include/linux/static_call.h @@ -100,7 +100,6 @@ #ifdef CONFIG_HAVE_STATIC_CALL #include <asm/static_call.h> -extern bool static_call_initialized; /* * Either @site or @tramp can be NULL. */ @@ -121,6 +120,8 @@ extern void arch_static_call_transform(void *site, void *tramp, void *func, bool #ifdef CONFIG_HAVE_STATIC_CALL_INLINE +extern bool static_call_initialized; + extern int __init static_call_init(void); struct static_call_mod { @@ -184,6 +185,8 @@ extern int static_call_text_reserved(void *start, void *end); #elif defined(CONFIG_HAVE_STATIC_CALL) +#define static_call_initialized 0 + static inline int static_call_init(void) { return 0; } struct static_call_key { @@ -235,6 +238,8 @@ static inline int static_call_text_reserved(void *start, void *end) #else /* Generic implementation */ +#define static_call_initialized 0 + static inline int static_call_init(void) { return 0; } struct static_call_key { |