* [patch] drm/exynos: change zero to NULL for sparse
[not found] <5397F355.4060105@samsung.com>
@ 2014-06-11 6:36 ` Dan Carpenter
2014-06-18 5:06 ` Inki Dae
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-06-11 6:36 UTC (permalink / raw)
To: Inki Dae, Andrzej Hajda
Cc: Joonyoung Shim, Seung-Woo Kim, Kyungmin Park, Kukjin Kim,
linux-samsung-soc, kernel-janitors
We recently changed this function to return a pointer instead of an int
so we need to change this zero to a NULL or Sparse complains:
drivers/gpu/drm/exynos/exynos_drm_drv.h:346:47:
warning: Using plain integer as NULL pointer
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
index 36535f3..06cde45 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
@@ -343,7 +343,7 @@ struct exynos_drm_display * exynos_dpi_probe(struct device *dev);
int exynos_dpi_remove(struct device *dev);
#else
static inline struct exynos_drm_display *
-exynos_dpi_probe(struct device *dev) { return 0; }
+exynos_dpi_probe(struct device *dev) { return NULL; }
static inline int exynos_dpi_remove(struct device *dev) { return 0; }
#endif
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] drm/exynos: change zero to NULL for sparse
2014-06-11 6:36 ` [patch] drm/exynos: change zero to NULL for sparse Dan Carpenter
@ 2014-06-18 5:06 ` Inki Dae
0 siblings, 0 replies; 2+ messages in thread
From: Inki Dae @ 2014-06-18 5:06 UTC (permalink / raw)
To: Dan Carpenter
Cc: Andrzej Hajda, Joonyoung Shim, Seung-Woo Kim, Kyungmin Park,
Kukjin Kim, linux-samsung-soc, kernel-janitors
On 2014년 06월 11일 15:36, Dan Carpenter wrote:
> We recently changed this function to return a pointer instead of an int
> so we need to change this zero to a NULL or Sparse complains:
>
> drivers/gpu/drm/exynos/exynos_drm_drv.h:346:47:
> warning: Using plain integer as NULL pointer
Applied.
Thanks,
Inki Dae
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
> index 36535f3..06cde45 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
> +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
> @@ -343,7 +343,7 @@ struct exynos_drm_display * exynos_dpi_probe(struct device *dev);
> int exynos_dpi_remove(struct device *dev);
> #else
> static inline struct exynos_drm_display *
> -exynos_dpi_probe(struct device *dev) { return 0; }
> +exynos_dpi_probe(struct device *dev) { return NULL; }
> static inline int exynos_dpi_remove(struct device *dev) { return 0; }
> #endif
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-18 5:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5397F355.4060105@samsung.com>
2014-06-11 6:36 ` [patch] drm/exynos: change zero to NULL for sparse Dan Carpenter
2014-06-18 5:06 ` Inki Dae
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox