From patchwork Sat Apr 6 12:29:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariprasad Kelam X-Patchwork-Id: 10888335 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EB04F139A for ; Sun, 7 Apr 2019 05:26:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C35AB28635 for ; Sun, 7 Apr 2019 05:26:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2E372875E; Sun, 7 Apr 2019 05:26:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6716428635 for ; Sun, 7 Apr 2019 05:26:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hD0HO-0004Fj-5m; Sun, 07 Apr 2019 05:23:42 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hCkRk-0002Lv-8o for xen-devel@lists.xenproject.org; Sat, 06 Apr 2019 12:29:20 +0000 X-Inumbo-ID: 992fd36f-5867-11e9-92d7-bc764e045a96 Received: from mail-pg1-x542.google.com (unknown [2607:f8b0:4864:20::542]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 992fd36f-5867-11e9-92d7-bc764e045a96; Sat, 06 Apr 2019 12:29:19 +0000 (UTC) Received: by mail-pg1-x542.google.com with SMTP id k3so4539184pga.6 for ; Sat, 06 Apr 2019 05:29:18 -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=ljzmLp/Rx5JDdQ7QJt3O5yVx/BQTjqg+OOYMyi0keYg=; b=fEnmlIr3h70+VFRqNP9aGzq6oA0lKrThXiQwpVePWZc8qpjcKWQGdcGuQp7AlmdNaV F1OaiDPLdSvR4RPfeRetnNbVGyvK9wBXFT2pXGmG0j8Bph7qoT2OZbgRWHGbAgGBKihj fpU2lK/o3ds4MSsnahRL06aWsfRlATLq8zMVeXx4Aidu89S1hsxfNKEnq8CGD4EGTi/0 h/Sow9VxQnJAyhQXmTN6O7AAprKsH0O2K0hUCBsGtrI07WRlx8mkmWl5nLjEWTkXOJ45 IKqc3f03tyRUZhMm8hX+1NVv7r4LFN1LqjY4hdbn2ufIIiD/q5oDJqjbUwwd75wW+cbx LWqg== 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=ljzmLp/Rx5JDdQ7QJt3O5yVx/BQTjqg+OOYMyi0keYg=; b=V410Qw7fCPysL5ZiEQorXTQnkfqGBXF6cpiVGUtMQI9sPWbF+P+6IPhBYLQyHFHvaQ nf+gmOUTbHDFQ3LqEijOI+EU/GO9wxQglXTb0+NaAHJmDjc3o6UQBSH9k5n7zqLsfuK1 zJu9rRO9/S8OvVdBqOyHjtTF7eigzBwZ6ZHay8vSo5NsU6uLHeBsuPKAsXy5fAnaBp72 ieoXawUAgDjdiws/E452KvV75pWIUpmHHfoT9UP8T/v2IIaSTRA5A4pQAFOiml7PvwbL jiik2uPuzPkkHs4HCx9sbKVLvC6aCuk6P4sADAfo82Lzj0OwiOJevPWU15kFeqG1SN2P bF0A== X-Gm-Message-State: APjAAAUqBvGwsPf0SGF8dLGBsONUqlsS/UAxEE3O5OnxnE/PuZandznF cJIpuZkpkPhSFxYYT9mmrLo= X-Google-Smtp-Source: APXvYqw9p2AA/ltbvwYWi/8jsyrP065X209+CvNUUi4Dt86kiURYSrIPz2Fqz5h5iz/8b3lchZTemw== X-Received: by 2002:a63:7152:: with SMTP id b18mr17486324pgn.186.1554553758151; Sat, 06 Apr 2019 05:29:18 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.91.90]) by smtp.gmail.com with ESMTPSA id p26sm55201245pfa.49.2019.04.06.05.29.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Apr 2019 05:29:17 -0700 (PDT) Date: Sat, 6 Apr 2019 17:59:12 +0530 From: Hariprasad Kelam To: Boris Ostrovsky , Juergen Gross , Stefano Stabellini , "Gustavo A. R. Silva" , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Message-ID: <20190406122912.GA403@hari-Inspiron-1545> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Mailman-Approved-At: Sun, 07 Apr 2019 05:23:41 +0000 Subject: [Xen-devel] [PATCH] xen: xen-pciback: fix warning Using plain integer as NULL pointer X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Juergen Gross --- 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;