Files
linux/arch/sh/include/asm
Sam Ravnborg 8b59337761 sh: prevent warnings when using iounmap
[ Upstream commit 733f0025f0 ]

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 used as argument to iounmap().

In sh - allmodconfig CONFIG_MMU is not defined
so it ended up in:

\#define __iounmap(addr)	do { } while (0)
\#define iounmap		__iounmap

Fix the warning by introducing a static inline function for iounmap.

This is similar to several other architectures.

Link: http://lkml.kernel.org/r/20190622114208.24427-1-sam@ravnborg.org
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-04 09:33:41 +02:00
..
2008-07-29 08:09:44 +09:00
2010-11-04 12:32:24 +09:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-12 22:19:10 +01:00
2016-01-12 20:47:01 +02:00
2016-01-12 20:47:01 +02:00
2012-01-13 16:27:38 +09:00
2012-05-19 18:50:09 +09:00
2008-07-29 08:09:44 +09:00
2013-01-11 21:02:57 +09:00
2008-07-29 08:09:44 +09:00
2014-01-23 16:36:54 -08:00
2009-05-29 08:40:02 -07:00
2008-07-29 08:09:44 +09:00
2009-10-14 16:42:28 +09:00
2011-07-26 16:49:47 -07:00
2012-05-18 14:52:31 +09:00
2010-11-01 09:49:04 -04:00
2019-08-04 09:33:41 +02:00
2012-05-21 17:54:01 +09:00
2010-10-07 14:08:55 +01:00
2012-05-24 15:03:46 +09:00
2010-06-14 15:16:53 +09:00
2008-07-29 08:09:44 +09:00
2010-03-10 16:29:48 +09:00
2008-07-29 08:09:44 +09:00
2010-01-20 16:42:52 +09:00
2009-09-11 13:19:16 +09:00
2016-06-04 00:22:46 +02:00
2008-08-02 04:39:32 +09:00
2015-01-13 15:24:08 +02:00
2008-07-29 08:09:44 +09:00
2008-07-29 08:09:44 +09:00
2008-07-29 08:09:44 +09:00
2008-07-29 08:09:44 +09:00
2010-04-26 19:08:55 +09:00
2008-07-29 08:09:44 +09:00
2008-07-29 08:09:44 +09:00
2008-07-29 08:09:44 +09:00
2008-08-04 12:51:06 +09:00
2012-05-14 13:04:08 +09:00
2016-09-27 21:15:14 -04:00
2011-03-31 11:26:23 -03:00
2008-07-29 08:09:44 +09:00
2008-07-29 08:09:44 +09:00