kernel_optimize_test/arch/m68k/include/asm
Guenter Roeck 31df1d037c m68k: Double cast io functions to unsigned long
[ Upstream commit b1a89856fbf63fffde6a4771d8f1ac21df549e50 ]

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
..
adb_iop.h macintosh/adb-iop: Implement SRQ autopolling 2020-07-26 23:34:24 +10:00
amigahw.h
amigaints.h
amigayle.h
amipcmcia.h
apollohw.h
asm-offsets.h
asm-prototypes.h
atari_joystick.h
atari_stdma.h
atari_stram.h
atarihw.h m68k: atari: Rename shifter to shifter_st to avoid conflict 2019-08-19 13:24:10 +02:00
atariints.h
atarikb.h
atomic.h locking/atomic: Move ATOMIC_INIT into linux/types.h 2020-07-29 16:14:18 +02:00
bitops.h
blinken.h
bootinfo.h
bootstd.h
bug.h
bugs.h
bvme6000hw.h
cache.h
cacheflush_mm.h m68k: implement flush_icache_user_range 2020-06-08 11:05:58 -07:00
cacheflush_no.h m68knommu: use asm-generic/cacheflush.h 2020-06-08 11:05:57 -07:00
cacheflush.h
checksum.h saner calling conventions for csum_and_copy_..._user() 2020-08-20 15:45:15 -04:00
cmpxchg.h m68k: use asm-generic cmpxchg_local() 2020-07-27 12:32:00 +10:00
coldfire.h
contregs.h
current.h
delay.h
div64.h
dma.h
dsp56k.h
dvma.h
elf.h
entry.h
export.h export: explicitly align struct kernel_symbol 2019-09-10 10:30:09 +02:00
fb.h
fbio.h
flat.h binfmt_flat: provide an asm-generic/flat.h 2019-06-24 09:16:47 +10:00
floppy.h floppy: use symbolic register names in the m68k port 2020-05-12 19:34:52 +03:00
fpu.h
ftrace.h
gpio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
hash.h
hp300hw.h
hwtest.h
ide.h
idprom.h
intersil.h
io_mm.h m68k: Prevent some compiler warnings in Coldfire builds 2019-08-19 13:24:10 +02:00
io_no.h m68knommu: fix use of cpu_to_le() on IO access 2020-07-27 12:32:00 +10:00
io.h
irq.h
irqflags.h
Kbuild local64.h: make <asm/local64.h> mandatory 2021-01-12 20:18:16 +01:00
kexec.h
kmap.h remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
linkage.h
m52xxacr.h
m53xxacr.h m68knommu: fix overwriting of bits in ColdFire V3 cache control 2020-07-27 12:32:00 +10:00
m53xxsim.h
m54xxacr.h
m54xxgpt.h
m54xxpci.h
m54xxsim.h
m520xsim.h
m523xsim.h
m525xsim.h
m527xsim.h
m528xsim.h
m5206sim.h
m5272sim.h
m5307sim.h
m5407sim.h
m5441xsim.h m68k: mcf5441x: add support for esdhc mmc controller 2020-05-28 11:22:15 +02:00
mac_asc.h
mac_baboon.h
mac_iop.h
mac_oss.h
mac_psc.h
mac_via.h m68k: mac: Don't call via_flush_cache() on Mac IIfx 2020-05-25 10:55:56 +02:00
machdep.h
machines.h
machw.h
macintosh.h m68k: Prevent some compiler warnings in Coldfire builds 2019-08-19 13:24:10 +02:00
macints.h
math-emu.h
MC68EZ328.h
MC68VZ328.h
MC68328.h
mc146818rtc.h
mcf_pgalloc.h m68k: mm: Change ColdFire pgtable_t 2020-02-10 10:57:48 +01:00
mcf_pgtable.h mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
mcf8390.h
mcfclk.h m68k: mcf5441x: add support for esdhc mmc controller 2020-05-28 11:22:15 +02:00
mcfdma.h
mcfgpio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
mcfintc.h
mcfmmu.h
mcfpit.h
mcfqspi.h
mcfsim.h
mcfslt.h
mcftimer.h
mcfuart.h
mcfwdebug.h
mmu_context.h mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
mmu.h
mmzone.h
module.h
module.lds.h kbuild: preprocess module linker script 2020-09-25 00:36:41 +09:00
motorola_pgalloc.h mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
motorola_pgtable.h mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
movs.h
mvme16xhw.h
mvme147hw.h m68k: mvme147,mvme16x: Don't wipe PCC timer config bits 2021-05-14 09:50:14 +02:00
natfeat.h
nettel.h
nubus.h
openprom.h
oplib.h
page_mm.h
page_no.h
page_offset.h
page.h mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS 2020-04-10 15:36:21 -07:00
parport.h
pci.h
pgalloc.h
pgtable_mm.h mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00
pgtable_no.h mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00
pgtable.h
processor.h
ptrace.h
q40_master.h
q40ints.h
quicc_simple.h
raw_io.h m68k: Double cast io functions to unsigned long 2021-09-30 10:11:06 +02:00
segment.h uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
serial.h
setup.h
signal.h
smp.h
string.h
sun3_pgalloc.h asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
sun3_pgtable.h mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
sun3-head.h
sun3ints.h
sun3mmu.h
sun3x.h
sun3xflop.h mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
sun3xprom.h
switch_to.h
syscall.h
thread_info.h m68k: Revive _TIF_* masks 2020-09-07 10:56:08 +02:00
timex.h
tlb.h
tlbflush.h uaccess: add force_uaccess_{begin,end} helpers 2020-08-12 10:57:59 -07:00
traps.h
uaccess.h m68knommu: switch to using asm-generic/uaccess.h 2020-10-05 21:51:31 +10:00
ucontext.h
unaligned.h
unistd.h m68k: Wire up clone3() syscall 2020-01-12 16:49:20 +01:00
user.h
vga.h
virtconvert.h
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
zorro.h