linux/arch/mips/include/asm/mach-generic
Alexander Lobakin 7b5f96949d MIPS: io: fix sparse flood on asm/io.h
MIPS MMIO macros for byteswapping from/to hardware endianness are a bit
tricky because they use cpu_to_le{16,32,64}() in both directions.
This generates a lot of questions from sparse as __le{16,32,64} types
are 'restricted' and direct cast is forbidden in order to prevent messing
up the byteorder.
As MMIO ops are used in almost every single driver, this leads to console
flooding and complicates bug hunting.

We could fix it in a more proper way, i.e. separate from device /
to device byteswap macros and expand __BUILD_MEMORY_*(), but this seems
redundant and will produce code duplication.
Instead, just expand the existing *ioswab*() macros with forced
typecasting to stop floods.

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2020-06-25 10:36:39 +02:00
..
cpu-feature-overrides.h
floppy.h mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
ide.h
ioremap.h MIPS: cleanup fixup_bigphys_addr handling 2020-04-19 16:09:44 +02:00
irq.h MIPS: Kill MIPS_GIC_IRQ_BASE 2020-04-14 19:05:13 +02:00
kernel-entry-init.h
kmalloc.h MIPS: remove CONFIG_DMA_COHERENT 2018-06-24 09:26:02 -07:00
mangle-port.h MIPS: io: fix sparse flood on asm/io.h 2020-06-25 10:36:39 +02:00
mc146818rtc.h
spaces.h MIPS: Allow auto-dection of ARCH_PFN_OFFSET & PHYS_OFFSET 2018-07-30 10:27:32 -07:00
topology.h
war.h MIPS: Remove unused R5432_CP0_INTERRUPT_WAR 2019-07-23 14:33:44 -07:00