Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1429890yba; Sat, 6 Apr 2019 12:04:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOfMK+Ka+24yGjYVaql3jsU2cvYfQ1rQb2yBqRgj0q6iG82z3I0Qv73zesCVIwqJTeBXu/ X-Received: by 2002:a17:902:f094:: with SMTP id go20mr20452303plb.159.1554577485063; Sat, 06 Apr 2019 12:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554577485; cv=none; d=google.com; s=arc-20160816; b=BlES3sZbySM4xImc8kuhSh1QyTJItGp4aYMxEttBTL9bmGei5atvMcDptcLh8uxDqD OTT1DDrU5/rN7yT04IrRUdVXvXTSqAdcjiq44YpSiiKW4BhWoOMizCBYk/e0aGdRmlkM uBhs2+fmylYK2CML46WmLG1JK/IjCvNaK+y9811q0fBHFkx/3H6/kRovtXjfcz6pdKVn iYJmVYB5Me/FrB5+WflBfYDZprQ21JHsczHfxOyKScuObYgehVMe8tykanMUF5CQe3qK wAQ26HqL0oXozmk4Q+Yx8EPwcE5AsWw47OudNP0XClcb0ujRf9i2y60lUyQLZw6DmRIQ Iy9g== 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=vV+fl6Ry4DHCSVwqwqQH6mkL8wCjQ70TP3xIEvwCiIU=; b=jYEbqF7Pk3bkdl2yl8MTWDVUwGiP3O3vQAyh05TfSBOt+MKf1/jnrEfP+3xR0LFZOQ IpPGfJU2s6x8XsGhaeDAQWvyc4NOdnaFBDB/61UC3fgjExrHmEe6mZjdypK2q5zgk//j 9/Ve4dAzrWjmna65sy628Ce8O/xRRYoARyTdEtSszSE7s2RfLL04xzSdeZz1SKysQFYd t2H0izvoTZY+Et+CmkzhzRHXanUVCO/eWPdf08XlHMvfdA6D6RcDxnh2DkI2GEkSDQT9 lSGVF+fCdPYHoL7KA2BOMDpHRw5VilX9SvMm8UmmA+EGZ/aY7PtXRiqsTGNaYBjrzrtM hvUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=kzTyf4tu; dkim=pass header.i=@codeaurora.org header.s=default header.b=Mk1oPrJG; 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 s71si22330249pgs.561.2019.04.06.12.04.27; Sat, 06 Apr 2019 12:04:45 -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=kzTyf4tu; dkim=pass header.i=@codeaurora.org header.s=default header.b=Mk1oPrJG; 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 S1726625AbfDFTDk (ORCPT + 99 others); Sat, 6 Apr 2019 15:03:40 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36310 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbfDFTDk (ORCPT ); Sat, 6 Apr 2019 15:03:40 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 94EE3607EB; Sat, 6 Apr 2019 19:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554577419; bh=fh1H5KKwnjiRs9RsITbGDwGcMNJWE9tSssA6iIdHjOs=; h=Subject:To:References:From:Date:In-Reply-To:From; b=kzTyf4tungH+UAnF6O3lLTKuekX/Spvn5Ih8QiiO017ZprRErXjNFvriK3MuGvCVr hrcBp64vFmUa53v7QEKPZJNzFbnqY6EMDa9rudoxK54oKFA6prK8QV74tiibbKudqR DCZgyggiqw6V0f/EqZ0m6DqbmNzxLzPmC6v6yMtc= 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 829986053D; Sat, 6 Apr 2019 19:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554577417; bh=fh1H5KKwnjiRs9RsITbGDwGcMNJWE9tSssA6iIdHjOs=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Mk1oPrJGzlKyRtUwlyOeLMebVCh/K1jVCRDopH0wTYycoylqx1eHsXD0C2oiGeXrN jDRkIHaXV4JprkzHQCJ7KFor6pTQFVQuLa8UeAczQxygTgm0ywgMJ7G72MDmmINBg8 f3ob1wGf4z/0PhLsGJx8kqlLCZG3SP8HOE7m2hSM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 829986053D 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] xen: xen-pciback: fix warning Using plain integer as NULL pointer To: Hariprasad Kelam , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , "Gustavo A. R. Silva" , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org References: <20190406122912.GA403@hari-Inspiron-1545> From: Mukesh Ojha Message-ID: <8d19e62d-11cd-91dc-6c54-d688d2d67d00@codeaurora.org> Date: Sun, 7 Apr 2019 00:33:29 +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: <20190406122912.GA403@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 5:59 PM, Hariprasad Kelam wrote: > Changes passing function argument 0 to NULL to avoid below sparse > warning > > CHECK drivers/xen/xen-pciback/xenbus.c > drivers/xen/xen-pciback/xenbus.c:700:51: warning: Using plain integer as > NULL pointer > > Signed-off-by: Hariprasad Kelam Reviewed-by: Mukesh Ojha Cheers, -Mukesh > --- > drivers/xen/xen-pciback/xenbus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/xen/xen-pciback/xenbus.c > index 23f7f6e..833b2d2 100644 > --- a/drivers/xen/xen-pciback/xenbus.c > +++ b/drivers/xen/xen-pciback/xenbus.c > @@ -697,7 +697,7 @@ static int xen_pcibk_xenbus_probe(struct xenbus_device *dev, > /* We need to force a call to our callback here in case > * xend already configured us! > */ > - xen_pcibk_be_watch(&pdev->be_watch, NULL, 0); > + xen_pcibk_be_watch(&pdev->be_watch, NULL, NULL); > > out: > return err;