Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1933168ima; Thu, 25 Oct 2018 07:13:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5e40g29dnjQpCkpzdx81Js5VeAQsnXN9MEdUPBfscj24oNLunhOu3cU76fd76oW2mvnNT2i X-Received: by 2002:a17:902:703:: with SMTP id 3-v6mr1722613pli.38.1540476838346; Thu, 25 Oct 2018 07:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540476838; cv=none; d=google.com; s=arc-20160816; b=VsTL57/7PK6AGe0axYd1WmQ5Q4NwGWxybcVxO4BIS0/2QypXoGHMb6vi8nkCM1rpJl S/R1nAPoLwu1WB02Ifhuo9qm7xvkCr3ZsUYi9URJ0h1yB/5CH0Vie5i2FbdP6k+63lpc wVLOP63fxOjnkupQsBTk4cvd5iNbXkZ6FnKECSW8YT//Ri6cNPwPdH0yy7nHxaq0Lq5r YFpi5Ki1gtr40Htj0y5ElLj9HHcJfiyPXJ/maEB1hBJd4Phde/y70ev3MkKnrCJSp9Sf S7v8VY7KzAnOATLoGZ+JXbAUAfmC0Qy4BV5eIU5SI6OD1aApSEOKXzVEGB5PcG7atpS8 AWqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=jtCj65af4DVxdxwRdZgGOFEWN7DfZwRFy5WCDJTc1Lg=; b=piHpinELtRmhHksyYmSq3IjygKiVZKwiFtiDpvI/Lu4aA9xZDy7uu06AfRXkxHLYN2 OjJ//4WizZe1g6GG8uUzDwMsqUo6/EjCzzsgp8zWNekfLpegmyJ1VrWGD7TOgs0i3f+q hSa8TWr1l4A4oXuiZxiahq3LJKMDV4hMJPsqzOZa+tEy0aQ+kgdKD14QpGEDz8XAi0bW 0whdn8KmdSkB5XfezGZm05anG1H+9yYiVpuyDugES1bLDF3uvJ+nex58PiF+yD5yq3Re IXofQufXQ0FAOA1ibgL3pPzUJmT9N3p1svPgpAG9HqNkQqOETObqEwBkQtDtTmi6awSW ceMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IO73vL3v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si8256322pls.296.2018.10.25.07.13.26; Thu, 25 Oct 2018 07:13:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IO73vL3v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728503AbeJYWpW (ORCPT + 99 others); Thu, 25 Oct 2018 18:45:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:53896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727537AbeJYWot (ORCPT ); Thu, 25 Oct 2018 18:44:49 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7719E20854; Thu, 25 Oct 2018 14:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476714; bh=6LuiaFl9GIgTqDIYGGuBaZkR9G9a6K9ZgxmejtAk2Hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IO73vL3vDYhuvTV6P7lqAH8zkXm7Ttgn0+892JW+Y/7S6RTtFuUflxR37AxmhO9/q Ab6lg/ROQ8whPNLtZc6SSCEAudY70R3QC54nflwcfuMCh0R6NjAPontoJQY/yr7NhM 1GLZkjuSbacQW3C7eij+nyqwEKIKeCcN7LCBaXzg= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dan Carpenter , Thomas Gleixner , Peter Zijlstra , Alok Kataria , "H. Peter Anvin" , virtualization@lists.linux-foundation.org, kernel-janitors@vger.kernel.org, Sasha Levin Subject: [PATCH AUTOSEL 4.14 42/46] x86/paravirt: Fix some warning messages Date: Thu, 25 Oct 2018 10:10:49 -0400 Message-Id: <20181025141053.213330-42-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141053.213330-1-sashal@kernel.org> References: <20181025141053.213330-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 571d0563c8881595f4ab027aef9ed1c55e3e7b7c ] The first argument to WARN_ONCE() is a condition. Fixes: 5800dc5c19f3 ("x86/paravirt: Fix spectre-v2 mitigations for paravirt guests") Signed-off-by: Dan Carpenter Signed-off-by: Thomas Gleixner Reviewed-by: Juergen Gross Cc: Peter Zijlstra Cc: Alok Kataria Cc: "H. Peter Anvin" Cc: virtualization@lists.linux-foundation.org Cc: kernel-janitors@vger.kernel.org Link: https://lkml.kernel.org/r/20180919103553.GD9238@mwanda Signed-off-by: Sasha Levin --- arch/x86/kernel/paravirt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index f3559b84cd75..04da826381c9 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -90,7 +90,7 @@ unsigned paravirt_patch_call(void *insnbuf, if (len < 5) { #ifdef CONFIG_RETPOLINE - WARN_ONCE("Failing to patch indirect CALL in %ps\n", (void *)addr); + WARN_ONCE(1, "Failing to patch indirect CALL in %ps\n", (void *)addr); #endif return len; /* call too long for patch site */ } @@ -110,7 +110,7 @@ unsigned paravirt_patch_jmp(void *insnbuf, const void *target, if (len < 5) { #ifdef CONFIG_RETPOLINE - WARN_ONCE("Failing to patch indirect JMP in %ps\n", (void *)addr); + WARN_ONCE(1, "Failing to patch indirect JMP in %ps\n", (void *)addr); #endif return len; /* call too long for patch site */ } -- 2.17.1