From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751564AbcBFEbV (ORCPT ); Fri, 5 Feb 2016 23:31:21 -0500 Received: from mail.kernel.org ([198.145.29.136]:58111 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbcBFEaX (ORCPT ); Fri, 5 Feb 2016 23:30:23 -0500 From: "Luis R. Rodriguez" To: hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de Cc: konrad.wilk@oracle.com, rusty@rustcorp.com.au, luto@amacapital.net, boris.ostrovsky@oracle.com, mcb30@ipxe.org, jgross@suse.com, JBeulich@suse.com, joro@8bytes.org, ryabinin.a.a@gmail.com, long.wanglong@huawei.com, qiuxishi@huawei.com, aryabinin@virtuozzo.com, mchehab@osg.samsung.com, x86@kernel.org, xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH v2 2/3] paravirt: replace direct access to pv_info.paravirt_enabled Date: Fri, 5 Feb 2016 20:30:13 -0800 Message-Id: <1454733014-15237-3-git-send-email-mcgrof@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454733014-15237-1-git-send-email-mcgrof@kernel.org> References: <1454733014-15237-1-git-send-email-mcgrof@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use helper, its why its there. Signed-off-by: Luis R. Rodriguez --- arch/x86/include/asm/paravirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 60a71dfe0c4e..6542aa99714b 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -21,7 +21,7 @@ static inline bool paravirt_enabled(void) static inline bool paravirt_has_feature(unsigned int feature) { - WARN_ON_ONCE(!pv_info.paravirt_enabled); + WARN_ON_ONCE(!paravirt_enabled()); return !!(pv_info.features & feature); } -- 2.7.0