Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1061526yba; Sat, 6 Apr 2019 02:39:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwE20wfFzaw85VW2BDRy12YpjPNvn5dOpZwIJBrNPNvtyhDsnH2kiwRd51yPDyQm9m5SoUI X-Received: by 2002:a17:902:8d89:: with SMTP id v9mr18157054plo.230.1554543556870; Sat, 06 Apr 2019 02:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554543556; cv=none; d=google.com; s=arc-20160816; b=rmLa38kETc2CgZxv8/Z5mbcbDpMjFblocu/mcNS95tDYk9VmExUjHviURPkN/w9zH2 IdL+j4IYXgUSQzxeW8XG1f38JSX4jLm3Au2Xo0LvcmdyqcJwjEjYSo6ZaZoyaiiEMqXR tJABZTjQocddZYcusdt/jifLkvfsq2Y9F5j4vzvV6qrrH47j/6IYzFnay9fA4lSLYjAH oNI16JQPuKni3NnMvB00fq7W8n7pGcm8x1MTrVFy4FLOUAY8hxYqTLU1TAptc1PhFPNw qLggLvl2rEG6aUfAQMNKj6mgM78UN5LDgBAO5hcCfBQ/DstjWrMQXiT6Nc3D7bviS/uk WezA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=JKzbLmOuB4i3/2ABSBaH37wRSZE0CAEFilVfjVxKb38=; b=u9Vqe+i4PeoN2vDlxJdfkaYqgc/xqeDfPs583bgmGQFCI7NXAf2cDHxDu/0bs9bE7v mrrl1J3Vyz58uSYV6UrYGVCukpbPLSSAgqTRsS28mZ/baPx/lxuJzQtfTSpp16waS0qZ +/+XG9boXuYtYI/r8ci4YxQgoqZLnnusJs5L8upDuUyZjsxFFACl5Q8PVkOpfSBQY7Bz orCT8Oas+ERt6udOUP5DNUeyp96Iwq8QJjLO+SL/uQt+MdeNJ3MIlmmg+4qO8eOU9fUc W0WpIPd/SyrUDQf4XJidDAcxEPsPcY+Dh9a/cCu2u3fPOTCwDLR54xOAEdeNJofyLbEh WjiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hIJFiZqb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si21830679pfb.139.2019.04.06.02.39.01; Sat, 06 Apr 2019 02:39:16 -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=@gmail.com header.s=20161025 header.b=hIJFiZqb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726479AbfDFJhG (ORCPT + 99 others); Sat, 6 Apr 2019 05:37:06 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34832 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfDFJhF (ORCPT ); Sat, 6 Apr 2019 05:37:05 -0400 Received: by mail-pg1-f194.google.com with SMTP id g8so4395642pgf.2; Sat, 06 Apr 2019 02:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=JKzbLmOuB4i3/2ABSBaH37wRSZE0CAEFilVfjVxKb38=; b=hIJFiZqbvevS6d1JoUU8VKl2CXE1a6ZLoide/pR2SMp8oLmtT9Q3kphs2Z0Sp+82Ug 7qgkQYIz3TqdvgCyN+REoWyLXyNZtyIQuaSqCq/B59jJ+tbCgJ+rGF67SwhH/HbjqvRi xZnMPerCjWh+hhXOjR8+t2FSaqXf6Ew0MZfyB+DahHaIgDvOmZKwS7/doABtVNrwYThW FLeDxXRe26MkSWp9mXhjydiOJwmRozEjeZBL07Meqtn4OT6kLojkKqHdUd0WQpklE2MU qdnYZI1Phv5m7lJUYLu7I2o1xuqdPJayZoRVqeqNA6Ee7AYzkF4zzW3A14v5pwFxTD2a WreQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=JKzbLmOuB4i3/2ABSBaH37wRSZE0CAEFilVfjVxKb38=; b=dVVi61bERa9GrSJ9HRZXRgBuKQ4ROA+HsKg/Ib3ovLaTv7GUUyNYzNA7JBLDFk5EdJ XfO67AOLxbZ/hZrtWIOudWSKQLjA6n1qlZzTQKBgRX9GEGgR6i/02YCHQP/le7pjtZH3 /+1K3nqmadK2zehHMy8RVqz1L6cQJhuqIyNTE1QLF1GEuqB5vugBv4E4kJuuZZUUBWz6 qG221ljliy3QA0aluZMGQI0uftN+mqmzFTV+1SZD8JbbQAc8SvNjKNZp+4FChdLKFBiw N86IsTnhn8OpH5LQHBXgnzoY9fccYhb9nvxckhoWBaxQ7laGcONnp8hRf+c/vHTBagAT SAEQ== X-Gm-Message-State: APjAAAVi8ikedLg/wWPdgg8p6Z7umT4whl0u50bPMm38xiNJ+xeSzx95 9o91elAd5/W4u40r2SiOWGo= X-Received: by 2002:a62:6587:: with SMTP id z129mr17970133pfb.88.1554543424717; Sat, 06 Apr 2019 02:37:04 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.91.90]) by smtp.gmail.com with ESMTPSA id f63sm33033054pfc.180.2019.04.06.02.37.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Apr 2019 02:37:04 -0700 (PDT) Date: Sat, 6 Apr 2019 15:06:58 +0530 From: Hariprasad Kelam To: Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] KVM: x86: fix warning Using plain integer as NULL pointer Message-ID: <20190406093658.GA7438@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.7.4