From: Ioana Ciornei Date: Thu, 14 Oct 2021 14:49:22 +0000 (+0300) Subject: soc: fsl: dpio: use an explicit NULL instead of 0 X-Git-Tag: v6.1-rc5~2733^2~7^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7ff7dcaf4d2dfbfd901e28ab0101ee9a1b8bf98;p=platform%2Fkernel%2Flinux-starfive.git soc: fsl: dpio: use an explicit NULL instead of 0 Use an explicit NULL pointer when calling qbman_swp_enqueue_multiple() instead of a plain integer. Without this fix, we get the following compile time error. drivers/soc/fsl/dpio/dpio-service.c:466:60: warning: Using plain integer as NULL pointer Fixes: 9d98809711ae ("soc: fsl: dpio: Adding QMAN multiple enqueue interface") Signed-off-by: Ioana Ciornei Signed-off-by: Li Yang --- diff --git a/drivers/soc/fsl/dpio/dpio-service.c b/drivers/soc/fsl/dpio/dpio-service.c index 7351f30..23ff027 100644 --- a/drivers/soc/fsl/dpio/dpio-service.c +++ b/drivers/soc/fsl/dpio/dpio-service.c @@ -462,7 +462,7 @@ int dpaa2_io_service_enqueue_multiple_fq(struct dpaa2_io *d, qbman_eq_desc_set_no_orp(&ed, 0); qbman_eq_desc_set_fq(&ed, fqid); - return qbman_swp_enqueue_multiple(d->swp, &ed, fd, 0, nb); + return qbman_swp_enqueue_multiple(d->swp, &ed, fd, NULL, nb); } EXPORT_SYMBOL(dpaa2_io_service_enqueue_multiple_fq);