Message ID | 20190828175009.15457-2-andrew.murray@arm.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 8f35eaa5f2de020073a48ad51112237c5932cfcc |
Headers | show |
Series | arm64: avoid out-of-line ll/sc atomics | expand |
diff --git a/kernel/jump_label.c b/kernel/jump_label.c index df3008419a1d..cdb3ffab128b 100644 --- a/kernel/jump_label.c +++ b/kernel/jump_label.c @@ -407,7 +407,9 @@ static bool jump_label_can_update(struct jump_entry *entry, bool init) return false; if (!kernel_text_address(jump_entry_code(entry))) { - WARN_ONCE(1, "can't patch jump_label at %pS", (void *)jump_entry_code(entry)); + WARN_ONCE(!jump_entry_is_init(entry), + "can't patch jump_label at %pS", + (void *)jump_entry_code(entry)); return false; }