Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1939776ima; Thu, 25 Oct 2018 07:18:45 -0700 (PDT) X-Google-Smtp-Source: AJdET5fbnBdPwraaf3OQczlfVKJHyhdI7aZ33197jFd97kGgdCVu56MnSz4GGE7uRe9ZynLYwCMz X-Received: by 2002:a17:902:bb88:: with SMTP id m8-v6mr1671989pls.120.1540477125407; Thu, 25 Oct 2018 07:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540477125; cv=none; d=google.com; s=arc-20160816; b=T2dexNHsj1NRAt1/8hpvG51bNT5Ydx8ktyj0+NmzbWGr27KMQETN4QN6ogoxbUPsch 0FYu8SaNMHbWwLnno3PJF3e1Kq4hAk10GwXpsngAc5J+HJbDC85g9xfn4Rsh5XeLquKF dsj/TKQdHbE0shYjqutBIyPk4UwMenM3NZig+XEo2NomRXY/OQULKHDXYb9PTT3u5ojK xLKW7FQVm2Y56gxvxeCyTPLfLQ7Qeunl2IGbgtgEl8Ui/X68/zx+UXvJc9e9pdkurrpr f3RRcMiANsf6zCu2QvSHjlqSuCc7JrgbkIxv5uCQI4XxO4E088MC/jUP60rL0+85JA65 Kq1g== 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=OO1fGgP2B6mTsMALie1IzLeDgd3V5XC58J6iu7EWrSU=; b=R72nwo2X1cZ0qCJ05OP9KR+D1vZ1XfOtaQSrZtZsEzB+A8pROOvcQcneUVITbsNzXZ g1agQ5ol3BjdT0b525jFK5X/ZktxfYVUifKX+urqi7inVSBviIW7PDrvdZIemrOq265w /41/JvvKw7ZpxNE7dgcasXCQsIiH5QbYiSZB4xl8lF0rKjZbGMzwHcIqg2kZRZgXx1C7 ndhC2Iz8TQlU9b0nlNcifKCPX1GUKUxzvCmRdU0L7Al8wsBhtIxLYQiZQ3cGRT6579XD DfduNOuYHqroeIDrMHFISnVEWSW1IWDUqh79/tw7Lloyk+cUgqe4sKmc9qlyMS+Jd7Pj rVLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zFSPprdf; 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 z33-v6si8346622plb.436.2018.10.25.07.18.13; Thu, 25 Oct 2018 07:18:45 -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=zFSPprdf; 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 S1729490AbeJYWtk (ORCPT + 99 others); Thu, 25 Oct 2018 18:49:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:58910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbeJYWtj (ORCPT ); Thu, 25 Oct 2018 18:49:39 -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 955E220870; Thu, 25 Oct 2018 14:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540477002; bh=P9NFCSBVKqeuAhf8AALTbR2A9K7bwigLH0zx4XROygU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zFSPprdf8b8MkWZ3WqSIQwtcqMK5QUM7neq5nyneuKVyCfH6VSsdjNyv+blvseOUY YrusCP4Rr547t5k3sJE/m+5lspoa28VmA7dM19UlKEzUol1tTQbK0mNkHQao76lCYg l7t54mXjRPgxxQRirGUPxsy1BtDWpVweJFCP5ojo= 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.9 94/98] x86/paravirt: Fix some warning messages Date: Thu, 25 Oct 2018 10:14:19 -0400 Message-Id: <20181025141423.213774-94-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141423.213774-1-sashal@kernel.org> References: <20181025141423.213774-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 29d465627919..bf9552bebb3c 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