Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1439045yba; Sat, 6 Apr 2019 12:18:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9o7vWjCoQryeNjVfyaXWMppXlmsbSU8nFf4louwnnARwaz64xlz+PjbAkAqKNvNnuv+st X-Received: by 2002:a63:8e:: with SMTP id 136mr14718348pga.367.1554578323288; Sat, 06 Apr 2019 12:18:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554578323; cv=none; d=google.com; s=arc-20160816; b=FHxISYQbzxdQ3lhRPnWGdW7O5srYvvoODpykye2dyzXpA7ADlKFHX8UsVwWnE6kTiH McOtxlXgZ2s6ffBS6CAwQ+JOf632K0ogZQeEnwGjpz75IpVXDvcO4aw6fW6FvPAPnYnj cqubph+Dqjk6EWyyzCiIRKAnhcdH7r+8Jh7smlKPPUSkhUVyJUY+qIUzVfbskT6WY2/P GV0GmY1ytCf+3cR02tXse0g035inq/qGaSwl6Qg7OBfQ26upQ1jd0Vs9niMhGJr0AKXN IlNSSxVvi2i3pYhch65yZZVfi5r4RK+ybfj3vWblqFiXxKjdLvV7BFwKnEZpAkovTdGh B9hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dmarc-filter:dkim-signature :dkim-signature; bh=zEnBCyC0klVfbLgUU5Z1BRQ7k4/g1mt/mBj1KGxDO4U=; b=jR2QLJU0zogL38RFMwpfnkYbwMv5WpY8EzmwAoXp4pb4r+XvMJrVBDE88l2LiNPAXr dy9XDNj1DM0Y4Vua5ilpDHRvJL5K2Aher3WeCqb0TtSnswDHBOeZUQt9Vh7iRXpFCtw1 TzPyKtaB5nxgkHs3Lfc2LJV/jE7SSqTb3sGKrVEvbwOKTjmJp9wbNZ6bJ01m7RnVcheE lJXRGR7/W5fcrwLkrYHeh0xBHwSCwNoKtA1F8VWkzkQUwpYkFVsKJcB+7Ix4HQkwv2re OCgrU3n61sdvuZP9ctBmlzE6cwlKCOq33uZlcnvgRQPpD24XIgafCCKowFvxtw0yvwbA iPug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=o6XxdVfX; dkim=pass header.i=@codeaurora.org header.s=default header.b="Oav5Gxr/"; 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 v124si21644657pgb.475.2019.04.06.12.18.27; Sat, 06 Apr 2019 12:18:43 -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=@codeaurora.org header.s=default header.b=o6XxdVfX; dkim=pass header.i=@codeaurora.org header.s=default header.b="Oav5Gxr/"; 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 S1726607AbfDFTRy (ORCPT + 99 others); Sat, 6 Apr 2019 15:17:54 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40210 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbfDFTRx (ORCPT ); Sat, 6 Apr 2019 15:17:53 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0C70F60D0C; Sat, 6 Apr 2019 19:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554578273; bh=5Qaauq7e6FfGQThLRgxCkta8VwuSwihOl+Fq9VzXhU0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=o6XxdVfXMX0njy88beJSNW1E1wvAWVrv9v+sK3PB+oCHdCFAtAZ/+LrtmqWN9dWAk eQk5DomEz3MHnSIKAgXbLHttwWTNnCiJQ5A4nfWnWlv+LXg6eSaUD53C2Mh6XmzuZ0 2eXJq2RWjpuG67zjXxVnNZU3D97aTuFgRNzYsjP4= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.171.6] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4A05D60115; Sat, 6 Apr 2019 19:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554578272; bh=5Qaauq7e6FfGQThLRgxCkta8VwuSwihOl+Fq9VzXhU0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Oav5Gxr/Fp8YAeMaowXLuwBmQ252wKpn9ttl8CJrMXSLqObtj1w7KmupmbxNrvJE1 KnwQ3TAuXUnspfuJ32UBQB/Gu7RGjLFCduxucAlquosuINNPyptrEjUqZzLa+WzWKe dVyrqzVUl5IZcIy0L+ttSBjh1gD1YlPQAjrxMVms= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4A05D60115 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org Subject: Re: [PATCH] KVM: x86: fix warning Using plain integer as NULL pointer To: Hariprasad Kelam , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190406093658.GA7438@hari-Inspiron-1545> From: Mukesh Ojha Message-ID: Date: Sun, 7 Apr 2019 00:47:40 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190406093658.GA7438@hari-Inspiron-1545> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/6/2019 3:06 PM, Hariprasad Kelam wrote: > Changed passing argument as "0 to NULL" which resolves below sparse warning > > arch/x86/kvm/x86.c:3096:61: warning: Using plain integer as NULL pointer > > Signed-off-by: Hariprasad Kelam Reviewed-by: Mukesh Ojha Cheers, -Mukesh > --- > arch/x86/kvm/x86.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 099b851..39034ec 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -3093,7 +3093,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) > break; > case KVM_CAP_NESTED_STATE: > r = kvm_x86_ops->get_nested_state ? > - kvm_x86_ops->get_nested_state(NULL, 0, 0) : 0; > + kvm_x86_ops->get_nested_state(NULL, NULL, 0) : 0; > break; > default: > break;