Files
Guenter Roeck 31df1d037c m68k: Double cast io functions to unsigned long
[ Upstream commit b1a89856fb ]

m68k builds fail widely with errors such as

arch/m68k/include/asm/raw_io.h:20:19: error:
	cast to pointer from integer of different size
arch/m68k/include/asm/raw_io.h:30:32: error:
	cast to pointer from integer of different size [-Werror=int-to-p

On m68k, io functions are defined as macros. The problem is seen if the
macro parameter variable size differs from the size of a pointer. Cast
the parameter of all io macros to unsigned long before casting it to
a pointer to fix the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210907060729.2391992-1-linux@roeck-us.net
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-30 10:11:06 +02:00
..
2009-01-16 21:58:10 +10:00
2009-01-16 21:58:10 +10:00
2019-01-04 13:13:46 -08:00
2011-12-10 19:52:48 +01:00
2018-02-21 15:35:43 -08:00
2009-01-16 21:58:10 +10:00
2014-09-29 09:56:19 +10:00
2018-05-07 07:15:41 +02:00
2018-10-31 08:54:12 -07:00
2020-08-12 10:57:58 -07:00
2009-01-16 21:58:10 +10:00
2009-01-16 21:58:10 +10:00
2020-09-07 10:56:08 +02:00
2019-04-03 10:32:54 +02:00
2020-01-12 16:49:20 +01:00