linux-stable/arch/m68k
Guenter Roeck e8bbc24fba 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-10-06 15:05:06 +02:00
..
68000 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
amiga m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
apollo License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atari m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
bvme6000 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
coldfire m68k/PCI: Fix a memory leak in an error handling path 2020-06-25 15:41:49 +02:00
configs m68k/defconfig: Update defconfigs for v4.13-rc1 2017-08-21 11:52:20 +02:00
emu m68k: emu: Fix invalid free in nfeth_cleanup() 2021-09-22 11:45:18 +02:00
fpsp040 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hp300 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
ifpsp060 scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
include m68k: Double cast io functions to unsigned long 2021-10-06 15:05:06 +02:00
kernel m68k: fix command-line parsing when passed from u-boot 2019-12-01 09:13:24 +01:00
lib License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mac m68k: mac: Fix IOP status/control register writes 2020-08-21 09:48:03 +02:00
math-emu
mm m68k/mm: Adjust VM area to be unmapped by gap size for __iounmap() 2018-07-03 11:24:46 +02:00
mvme16x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
mvme147 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
q40 m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:12:26 +02:00
sun3 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
sun3x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
tools/amiga License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
install.sh
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.bus License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.cpu License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.debug License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.devices License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.machine License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile m68k: Add -ffreestanding to CFLAGS 2019-03-23 14:35:21 +01:00