From mboxrd@z Thu Jan 1 00:00:00 1970 From: "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> References: <1454733014-15237-1-git-send-email-mcgrof@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1454733014-15237-1-git-send-email-mcgrof@kernel.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de Cc: jgross@suse.com, xen-devel@lists.xensource.com, x86@kernel.org, joro@8bytes.org, rusty@rustcorp.com.au, linux-kernel@vger.kernel.org, luto@amacapital.net, aryabinin@virtuozzo.com, "Luis R. Rodriguez" , ryabinin.a.a@gmail.com, JBeulich@suse.com, long.wanglong@huawei.com, qiuxishi@huawei.com, boris.ostrovsky@oracle.com, mcb30@ipxe.org, mchehab@osg.samsung.com List-Id: xen-devel@lists.xenproject.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