diff options
author | Santosh Shukla <santosh.shukla@linaro.org> | 2014-10-22 18:10:32 +0530 |
---|---|---|
committer | Gary S. Robertson <gary.robertson@linaro.org> | 2015-06-16 14:33:05 -0500 |
commit | 65c1ce5be5f9a0d585ca0d305dfaecd092db90f8 (patch) | |
tree | 30e659ebc32733b94c55a6b01961b87a8cef05d3 | |
parent | 6e0a02d5331eb9a00458b87b23b02a6fc9e0b9c7 (diff) |
MTD: MAP: _relaxed build fixlinux-lng-3.18.14-2015.06
noticed build break on x86
In file included from drivers/mtd/chips/chipreg.c:11:0:
include/linux/mtd/map.h: In function ‘inline_map_write’:
include/linux/mtd/map.h:420:3: error: implicit declaration of function ‘writeb_relaxed’ [-Werror=implicit-function-declaration]
writeb_relaxed(datum.x[0], map->virt + ofs);
^
include/linux/mtd/map.h:422:3: error: implicit declaration of function ‘writew_relaxed’ [-Werror=implicit-function-declaration]
writew_relaxed(datum.x[0], map->virt + ofs);
^
include/linux/mtd/map.h:424:3: error: implicit declaration of function ‘writel_relaxed’ [-Werror=implicit-function-declaration]
writel_relaxed(datum.x[0], map->virt + ofs);
This commit breaks for x86:
commit 1e885fabb4b148110c43056dd16842d11cde11db
Author: Victor Kamensky <victor.kamensky@linaro.org>
Date: Mon Jul 29 22:03:27 2013 -0700
mtd: map.h endian fix
Need to use endian neutral functions to read/write LE h/w registers. I.e
insted of __raw_readl and _raw_writel, readl_relaxed and writel_relaxed. If
the first just read/write register with memory barrier, the second will
byteswap it if host operates in BE mode.
Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
-rw-r--r-- | arch/x86/include/asm/io.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index b8237d8a1e0c..24167803fa09 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -78,6 +78,10 @@ build_mmio_write(__writel, "l", unsigned int, "r", ) #define __raw_writew __writew #define __raw_writel __writel +#define writeb_relaxed __writeb +#define writew_relaxed __writew +#define writel_relaxed __writel + #define mmiowb() barrier() #ifdef CONFIG_X86_64 |