Files
linux/arch/m68k
Guenter Roeck a79dbb507d 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>
2023-05-16 11:53:20 +09:00
..
2015-06-16 16:45:38 +10:00
2016-06-04 00:23:28 +02:00
2011-03-31 11:26:23 -03:00
2016-07-03 14:05:28 +02:00
2016-08-07 23:47:19 -04:00
2016-07-03 14:05:28 +02:00
2023-05-16 09:14:48 +09:00
2023-05-15 12:06:01 +09:00