Skip to contentSkip to conversation

xen: xen-pciback: fix warning Using plain integer as NULL pointer

PATCH Applied Hariprasad Kelam 4 participants 7 messages Apr 6, 2019 – Apr 24, 2019 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: xen-pciback: fix warning Using plain integer as NULL pointer

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

---
 drivers/xen/xen-pciback/xenbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/xen-pciback/xenbus.c +1 -1
index 23f7f6e..833b2d2 100644
@@ -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;
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Hariprasad Kelam

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

Cheers,
-Mukesh

Quoted 9 lines
---
  drivers/xen/xen-pciback/xenbus.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/xen-pciback/xenbus.c +0 -0
index 23f7f6e..833b2d2 100644

drivers/xen/xen-pciback/xenbus.c static int xen_pcibk_xenbus_probe(struct xenbus_device *dev, · line 703

Quoted 8 lines
drivers/xen/xen-pciback/xenbus.c +1 -1
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by on v1 1/1
#2 lore raw
In reply to Hariprasad Kelam
Quoted 8 lines · Hariprasad Kelam

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

Cheers,
-Mukesh

Quoted 17 lines
---
  drivers/xen/xen-pciback/xenbus.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/xen-pciback/xenbus.c +1 -1
index 23f7f6e..833b2d2 100644
@@ -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;
maintainer Reviewed-by on v1 1/1
#4 lore raw
In reply to Hariprasad Kelam
Quoted 8 lines · Hariprasad Kelam

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

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#5 lore raw
In reply to Hariprasad Kelam
Quoted 8 lines · Hariprasad Kelam

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

Applied to for-linus-5.2

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel