linux_dsm_epyc7002/arch/hexagon
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
..
configs Hexagon: Comet platform support 2011-11-01 07:34:21 -07:00
include dma-mapping: cosolidate dma_mapping_error 2015-09-10 13:29:01 -07:00
kernel whack-a-mole: no need to set_fs(USER_DS) in {start,flush}_thread() 2015-04-11 22:24:31 -04:00
lib Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
mm hexagon: Fix build failures in linux-next 2014-12-16 13:27:12 -06:00
Kconfig ktime: Kill non-scalar ktime_t implementation for 2038 2014-07-23 10:16:50 -07:00
Makefile Hexagon: change arch version config to allow comparisons 2013-04-30 19:40:22 -05:00