Re: [PATCH] sh: prevent warnings when using iounmap

2019-06-24 Thread Geert Uytterhoeven
Hi Sam, On Sat, Jun 22, 2019 at 1:45 PM Sam Ravnborg wrote: > When building drm/exynos for sh, as part of an allmodconfig build, > the following warning triggered: > > exynos7_drm_decon.c: In function ‘decon_remove’: > exynos7_drm_decon.c:769:24: warning: unused variable ‘ctx’ > struct de

[PATCH] sh: prevent warnings when using iounmap

2019-06-22 Thread Sam Ravnborg
When building drm/exynos for sh, as part of an allmodconfig build, the following warning triggered: exynos7_drm_decon.c: In function ‘decon_remove’: exynos7_drm_decon.c:769:24: warning: unused variable ‘ctx’ struct decon_context *ctx = dev_get_drvdata(&pdev->dev); The ctx variable is only