aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-18 19:13:40 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-18 19:13:40 -0500
commit39757e7351f874a614a46d634c415ca69e154e53 (patch)
treef0e41ec08cf1af121b82cc51fc14cc3ce98336de
parent66dcff86ba40eebb5133cccf450878f2bba102ef (diff)
parentf1f2eac9124bf0dc82b652871f9a596bce2d3e10 (diff)
Merge tag 'nios2-fixes-v3.19' of git://git.rocketboards.org/linux-socfpga-next
Pull arch/nios2 fixes from Ley Foon Tan: - add definition of ioremap_wc to io.h to fix build error from make allmodconfig - fix make defconfig - fix sparse error * tag 'nios2-fixes-v3.19' of git://git.rocketboards.org/linux-socfpga-next: nios2/uaccess: fix sparse errors nios2: enable "make defconfig" nios2: add definition of ioremap_wc to io.h
-rw-r--r--arch/nios2/Makefile2
-rw-r--r--arch/nios2/include/asm/io.h2
-rw-r--r--arch/nios2/include/asm/uaccess.h4
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index e142c9ee51fa..2328f82ba2a8 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -14,6 +14,8 @@
14# Nios2 port by Wind River Systems Inc trough: 14# Nios2 port by Wind River Systems Inc trough:
15# fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com 15# fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com
16 16
17KBUILD_DEFCONFIG := 3c120_defconfig
18
17UTS_SYSNAME = Linux 19UTS_SYSNAME = Linux
18 20
19export MMU 21export MMU
diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h
index 9102bfd3fa1c..6e24d7cceb0c 100644
--- a/arch/nios2/include/asm/io.h
+++ b/arch/nios2/include/asm/io.h
@@ -45,6 +45,8 @@ static inline void iounmap(void __iomem *addr)
45 __iounmap(addr); 45 __iounmap(addr);
46} 46}
47 47
48#define ioremap_wc ioremap_nocache
49
48/* Pages to physical address... */ 50/* Pages to physical address... */
49#define page_to_phys(page) virt_to_phys(page_to_virt(page)) 51#define page_to_phys(page) virt_to_phys(page_to_virt(page))
50#define page_to_bus(page) page_to_virt(page) 52#define page_to_bus(page) page_to_virt(page)
diff --git a/arch/nios2/include/asm/uaccess.h b/arch/nios2/include/asm/uaccess.h
index acedc0a2860e..caa51ff85a3c 100644
--- a/arch/nios2/include/asm/uaccess.h
+++ b/arch/nios2/include/asm/uaccess.h
@@ -168,7 +168,7 @@ do { \
168 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \ 168 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
169 unsigned long __gu_val; \ 169 unsigned long __gu_val; \
170 __get_user_common(__gu_val, sizeof(*(ptr)), __gu_ptr, __gu_err);\ 170 __get_user_common(__gu_val, sizeof(*(ptr)), __gu_ptr, __gu_err);\
171 (x) = (__typeof__(x))__gu_val; \ 171 (x) = (__force __typeof__(x))__gu_val; \
172 __gu_err; \ 172 __gu_err; \
173 }) 173 })
174 174
@@ -180,7 +180,7 @@ do { \
180 if (access_ok(VERIFY_READ, __gu_ptr, sizeof(*__gu_ptr))) \ 180 if (access_ok(VERIFY_READ, __gu_ptr, sizeof(*__gu_ptr))) \
181 __get_user_common(__gu_val, sizeof(*__gu_ptr), \ 181 __get_user_common(__gu_val, sizeof(*__gu_ptr), \
182 __gu_ptr, __gu_err); \ 182 __gu_ptr, __gu_err); \
183 (x) = (__typeof__(x))__gu_val; \ 183 (x) = (__force __typeof__(x))__gu_val; \
184 __gu_err; \ 184 __gu_err; \
185}) 185})
186 186