linux/arch/h8300/include/asm
Christoph Hellwig efa21e432c dma-mapping: cosolidate dma_mapping_error
Currently there are three valid implementations of dma_mapping_error:

 (1) call ->mapping_error
 (2) check for a hardcoded error code
 (3) always return 0

This patch provides a common implementation that calls ->mapping_error
if present, then checks for DMA_ERROR_CODE if defined or otherwise
returns 0.

[jcmvbkbc@gmail.com: fix xtensa]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-09-10 13:29:01 -07:00
..
atomic.h atomic: Collapse all atomic_{set,clear}_mask definitions 2015-07-27 14:06:24 +02:00
bitops.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
bitsperlong.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
bug.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
byteorder.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
cache.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
cmpxchg.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
dma-mapping.h dma-mapping: cosolidate dma_mapping_error 2015-09-10 13:29:01 -07:00
elf.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
flat.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
io.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
irq.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
irqflags.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
Kbuild mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
mc146818rtc.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
mutex.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
page_offset.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
page.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
pci.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
pgtable.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
processor.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
ptrace.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
segment.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
signal.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
smp.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
string.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
switch_to.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
syscall.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
thread_info.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
tlb.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
traps.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00
user.h h8300: Assembly headers 2015-06-23 13:35:49 +09:00