Skip to content

Commit 571d056

Browse files
Dan CarpenterKAGA-KOKO
authored andcommitted
x86/paravirt: Fix some warning messages
The first argument to WARN_ONCE() is a condition. Fixes: 5800dc5 ("x86/paravirt: Fix spectre-v2 mitigations for paravirt guests") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Juergen Gross <jgross@suse.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Alok Kataria <akataria@vmware.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: virtualization@lists.linux-foundation.org Cc: kernel-janitors@vger.kernel.org Link: https://lkml.kernel.org/r/20180919103553.GD9238@mwanda
1 parent ffb2315 commit 571d056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/paravirt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ unsigned paravirt_patch_call(void *insnbuf,
9191

9292
if (len < 5) {
9393
#ifdef CONFIG_RETPOLINE
94-
WARN_ONCE("Failing to patch indirect CALL in %ps\n", (void *)addr);
94+
WARN_ONCE(1, "Failing to patch indirect CALL in %ps\n", (void *)addr);
9595
#endif
9696
return len; /* call too long for patch site */
9797
}
@@ -111,7 +111,7 @@ unsigned paravirt_patch_jmp(void *insnbuf, const void *target,
111111

112112
if (len < 5) {
113113
#ifdef CONFIG_RETPOLINE
114-
WARN_ONCE("Failing to patch indirect JMP in %ps\n", (void *)addr);
114+
WARN_ONCE(1, "Failing to patch indirect JMP in %ps\n", (void *)addr);
115115
#endif
116116
return len; /* call too long for patch site */
117117
}

0 commit comments

Comments
 (0)