aboutsummaryrefslogtreecommitdiff
path: root/kernel/jump_label.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2019-08-30 12:55:39 +0100
committerWill Deacon <will@kernel.org>2019-08-30 12:55:39 +0100
commit61b7cddfe861f239bf39ab19a065e29b58153a80 (patch)
treee4930ac4950b72203cfebfc3b6565b346747b33f /kernel/jump_label.c
parentac12cf85d682a2c1948210c65f7fb21ef01dd9f6 (diff)
parent03adcbd996be7ce81cac793b1511406a7a4df117 (diff)
Merge branch 'for-next/atomics' into for-next/core
* for-next/atomics: (10 commits) Rework LSE instruction selection to use static keys instead of alternatives
Diffstat (limited to 'kernel/jump_label.c')
-rw-r--r--kernel/jump_label.c4
1 files changed, 3 insertions, 1 deletions
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;
}