Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2457175imd; Fri, 2 Nov 2018 11:43:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5c0mhiRJphVDJOso1waYVqKOJhURJJwfCq+budKLZs3Z2t0FlM3X2s5gBt8mKbkJTEw3LI3 X-Received: by 2002:a62:89d7:: with SMTP id n84-v6mr12952146pfk.255.1541184238714; Fri, 02 Nov 2018 11:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184238; cv=none; d=google.com; s=arc-20160816; b=H41Pt0VdnoYeuYjrrWQ5hkn+ICIXU8iqbPOR9j5rLwPDgjZmt17hF+sMb8JiLtaiJq caYWenOsqoqon/e+3EGnAoBhcNMZoJe7y5MeV81JWnWpeQBcCL96pGWCMUzMK4wYQ5uv 4JFrRhjDpS7xBtwC94UHiloBoU+wqyyJyIVabZda1Vl59x3MDjTO4Fl3pvTZudm2t5Cu PJRAnI9MWTIG1L9wVXtWbLRYg4NtfwG35d5vwqIyVFflOjV5wTG2Rbm+1mU8ssdaTLov 4eqSF9UBpclQib4ENFJvnsV1tQOUhhf30ad0lvgalT4THOsd85gFcHfXBYZnRaeTSn5G gZIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mrHne7LRCGl8Jahl6c/dsD79WkuXRCjRCAeaEBSF15s=; b=ijTylC7yawDJfFKZAG/nMdHK9Ilod4HA3AZ6SkpRIOGOQCRN5wXKrgN+olEILhOXX5 9Sei2/X8Jk39QJz4AN5QM/asy/rmc5CoVHDhl6t0ZT0cQ8YMB2IUxbOp8deIU0TI4fC3 q1Gs8HoBpxH3s7sId15hUVfhaQVq7oxdb1vCDgRA8xQ3vs9KkW9M2Qf1M16kDkzLo41B AWzbJ4vTzgmgwZj82RFQMdMwQMWkiZ8UJ2LES5QLkPpk/jCeqk7wiwCir9cZLWQBenNB iOinWTFcp7MNPDRm77lTRlXd0JGJRrU8nVkQZQo6ClwaDEBGbGjVx7qzopTm8FrQihmK ALPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CNC0LJzT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8-v6si13448110pgk.424.2018.11.02.11.43.44; Fri, 02 Nov 2018 11:43: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=CNC0LJzT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729576AbeKCDtf (ORCPT + 99 others); Fri, 2 Nov 2018 23:49:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:44234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728699AbeKCDtd (ORCPT ); Fri, 2 Nov 2018 23:49:33 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 53B2920843; Fri, 2 Nov 2018 18:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184082; bh=f2/nTAchtoTRkKydaBMHi3oeQMwbGC5nas97pzytlz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CNC0LJzTiSiiI9wIkZME+BsWSKAfDdeQDzCleNrhcp+Le6w/CLxBmgfjkfPxIw5UU eso5irHKuplJnpHnPNu2j4HFd0Bz93XXuOe9MN0yhTgIpz8VN6SSk4D/uOw8BaFDms BRGxbN66O0hUhJQIq88cRzb5zWHW9ubIqGYly2HE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Thomas Gleixner , Juergen Gross , Peter Zijlstra , Alok Kataria , "H. Peter Anvin" , virtualization@lists.linux-foundation.org, kernel-janitors@vger.kernel.org, Sasha Levin Subject: [PATCH 4.18 073/150] x86/paravirt: Fix some warning messages Date: Fri, 2 Nov 2018 19:33:55 +0100 Message-Id: <20181102182908.682563548@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 930c88341e4e..1fbf38dde84c 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