diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-08-25 03:59:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-25 03:59:19 -0400 |
commit | 8d58b66ed2b000f27658c88a4ed70e8042e86a58 (patch) | |
tree | 5bae2c74f932b5d863f72cb698a6f71260340b26 /arch/m32r/include | |
parent | 13fe86f465b72fc9328d4f5ebc33223c011852ae (diff) | |
parent | c13dcf9f2d6f5f06ef1bf79ec456df614c5e058b (diff) |
Merge tag 'v4.2-rc8' into x86/mm, before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/m32r/include')
-rw-r--r-- | arch/m32r/include/asm/Kbuild | 2 | ||||
-rw-r--r-- | arch/m32r/include/asm/cmpxchg.h | 2 | ||||
-rw-r--r-- | arch/m32r/include/asm/io.h | 5 | ||||
-rw-r--r-- | arch/m32r/include/asm/uaccess.h | 30 |
4 files changed, 26 insertions, 13 deletions
diff --git a/arch/m32r/include/asm/Kbuild b/arch/m32r/include/asm/Kbuild index 2edc793372fc..e0eb704ca1fa 100644 --- a/arch/m32r/include/asm/Kbuild +++ b/arch/m32r/include/asm/Kbuild | |||
@@ -4,8 +4,8 @@ generic-y += cputime.h | |||
4 | generic-y += exec.h | 4 | generic-y += exec.h |
5 | generic-y += irq_work.h | 5 | generic-y += irq_work.h |
6 | generic-y += mcs_spinlock.h | 6 | generic-y += mcs_spinlock.h |
7 | generic-y += mm-arch-hooks.h | ||
7 | generic-y += module.h | 8 | generic-y += module.h |
8 | generic-y += preempt.h | 9 | generic-y += preempt.h |
9 | generic-y += scatterlist.h | ||
10 | generic-y += sections.h | 10 | generic-y += sections.h |
11 | generic-y += trace_clock.h | 11 | generic-y += trace_clock.h |
diff --git a/arch/m32r/include/asm/cmpxchg.h b/arch/m32r/include/asm/cmpxchg.h index de651db20b43..14bf9b739dd2 100644 --- a/arch/m32r/include/asm/cmpxchg.h +++ b/arch/m32r/include/asm/cmpxchg.h | |||
@@ -107,8 +107,6 @@ __xchg_local(unsigned long x, volatile void *ptr, int size) | |||
107 | ((__typeof__(*(ptr)))__xchg_local((unsigned long)(x), (ptr), \ | 107 | ((__typeof__(*(ptr)))__xchg_local((unsigned long)(x), (ptr), \ |
108 | sizeof(*(ptr)))) | 108 | sizeof(*(ptr)))) |
109 | 109 | ||
110 | #define __HAVE_ARCH_CMPXCHG 1 | ||
111 | |||
112 | static inline unsigned long | 110 | static inline unsigned long |
113 | __cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new) | 111 | __cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new) |
114 | { | 112 | { |
diff --git a/arch/m32r/include/asm/io.h b/arch/m32r/include/asm/io.h index 4c4982af6fbd..61b8931bc192 100644 --- a/arch/m32r/include/asm/io.h +++ b/arch/m32r/include/asm/io.h | |||
@@ -175,6 +175,11 @@ static inline void _writel(unsigned long l, unsigned long addr) | |||
175 | #define iowrite16 writew | 175 | #define iowrite16 writew |
176 | #define iowrite32 writel | 176 | #define iowrite32 writel |
177 | 177 | ||
178 | #define ioread16be(addr) be16_to_cpu(readw(addr)) | ||
179 | #define ioread32be(addr) be32_to_cpu(readl(addr)) | ||
180 | #define iowrite16be(v, addr) writew(cpu_to_be16(v), (addr)) | ||
181 | #define iowrite32be(v, addr) writel(cpu_to_be32(v), (addr)) | ||
182 | |||
178 | #define mmiowb() | 183 | #define mmiowb() |
179 | 184 | ||
180 | #define flush_write_buffers() do { } while (0) /* M32R_FIXME */ | 185 | #define flush_write_buffers() do { } while (0) /* M32R_FIXME */ |
diff --git a/arch/m32r/include/asm/uaccess.h b/arch/m32r/include/asm/uaccess.h index 71adff209405..cac7014daef3 100644 --- a/arch/m32r/include/asm/uaccess.h +++ b/arch/m32r/include/asm/uaccess.h | |||
@@ -91,7 +91,8 @@ static inline void set_fs(mm_segment_t s) | |||
91 | * @addr: User space pointer to start of block to check | 91 | * @addr: User space pointer to start of block to check |
92 | * @size: Size of block to check | 92 | * @size: Size of block to check |
93 | * | 93 | * |
94 | * Context: User context only. This function may sleep. | 94 | * Context: User context only. This function may sleep if pagefaults are |
95 | * enabled. | ||
95 | * | 96 | * |
96 | * Checks if a pointer to a block of memory in user space is valid. | 97 | * Checks if a pointer to a block of memory in user space is valid. |
97 | * | 98 | * |
@@ -155,7 +156,8 @@ extern int fixup_exception(struct pt_regs *regs); | |||
155 | * @x: Variable to store result. | 156 | * @x: Variable to store result. |
156 | * @ptr: Source address, in user space. | 157 | * @ptr: Source address, in user space. |
157 | * | 158 | * |
158 | * Context: User context only. This function may sleep. | 159 | * Context: User context only. This function may sleep if pagefaults are |
160 | * enabled. | ||
159 | * | 161 | * |
160 | * This macro copies a single simple variable from user space to kernel | 162 | * This macro copies a single simple variable from user space to kernel |
161 | * space. It supports simple types like char and int, but not larger | 163 | * space. It supports simple types like char and int, but not larger |
@@ -175,7 +177,8 @@ extern int fixup_exception(struct pt_regs *regs); | |||
175 | * @x: Value to copy to user space. | 177 | * @x: Value to copy to user space. |
176 | * @ptr: Destination address, in user space. | 178 | * @ptr: Destination address, in user space. |
177 | * | 179 | * |
178 | * Context: User context only. This function may sleep. | 180 | * Context: User context only. This function may sleep if pagefaults are |
181 | * enabled. | ||
179 | * | 182 | * |
180 | * This macro copies a single simple value from kernel space to user | 183 | * This macro copies a single simple value from kernel space to user |
181 | * space. It supports simple types like char and int, but not larger | 184 | * space. It supports simple types like char and int, but not larger |
@@ -194,7 +197,8 @@ extern int fixup_exception(struct pt_regs *regs); | |||
194 | * @x: Variable to store result. | 197 | * @x: Variable to store result. |
195 | * @ptr: Source address, in user space. | 198 | * @ptr: Source address, in user space. |
196 | * | 199 | * |
197 | * Context: User context only. This function may sleep. | 200 | * Context: User context only. This function may sleep if pagefaults are |
201 | * enabled. | ||
198 | * | 202 | * |
199 | * This macro copies a single simple variable from user space to kernel | 203 | * This macro copies a single simple variable from user space to kernel |
200 | * space. It supports simple types like char and int, but not larger | 204 | * space. It supports simple types like char and int, but not larger |
@@ -274,7 +278,8 @@ do { \ | |||
274 | * @x: Value to copy to user space. | 278 | * @x: Value to copy to user space. |
275 | * @ptr: Destination address, in user space. | 279 | * @ptr: Destination address, in user space. |
276 | * | 280 | * |
277 | * Context: User context only. This function may sleep. | 281 | * Context: User context only. This function may sleep if pagefaults are |
282 | * enabled. | ||
278 | * | 283 | * |
279 | * This macro copies a single simple value from kernel space to user | 284 | * This macro copies a single simple value from kernel space to user |
280 | * space. It supports simple types like char and int, but not larger | 285 | * space. It supports simple types like char and int, but not larger |
@@ -568,7 +573,8 @@ unsigned long __generic_copy_from_user(void *, const void __user *, unsigned lon | |||
568 | * @from: Source address, in kernel space. | 573 | * @from: Source address, in kernel space. |
569 | * @n: Number of bytes to copy. | 574 | * @n: Number of bytes to copy. |
570 | * | 575 | * |
571 | * Context: User context only. This function may sleep. | 576 | * Context: User context only. This function may sleep if pagefaults are |
577 | * enabled. | ||
572 | * | 578 | * |
573 | * Copy data from kernel space to user space. Caller must check | 579 | * Copy data from kernel space to user space. Caller must check |
574 | * the specified block with access_ok() before calling this function. | 580 | * the specified block with access_ok() before calling this function. |
@@ -588,7 +594,8 @@ unsigned long __generic_copy_from_user(void *, const void __user *, unsigned lon | |||
588 | * @from: Source address, in kernel space. | 594 | * @from: Source address, in kernel space. |
589 | * @n: Number of bytes to copy. | 595 | * @n: Number of bytes to copy. |
590 | * | 596 | * |
591 | * Context: User context only. This function may sleep. | 597 | * Context: User context only. This function may sleep if pagefaults are |
598 | * enabled. | ||
592 | * | 599 | * |
593 | * Copy data from kernel space to user space. | 600 | * Copy data from kernel space to user space. |
594 | * | 601 | * |
@@ -606,7 +613,8 @@ unsigned long __generic_copy_from_user(void *, const void __user *, unsigned lon | |||
606 | * @from: Source address, in user space. | 613 | * @from: Source address, in user space. |
607 | * @n: Number of bytes to copy. | 614 | * @n: Number of bytes to copy. |
608 | * | 615 | * |
609 | * Context: User context only. This function may sleep. | 616 | * Context: User context only. This function may sleep if pagefaults are |
617 | * enabled. | ||
610 | * | 618 | * |
611 | * Copy data from user space to kernel space. Caller must check | 619 | * Copy data from user space to kernel space. Caller must check |
612 | * the specified block with access_ok() before calling this function. | 620 | * the specified block with access_ok() before calling this function. |
@@ -626,7 +634,8 @@ unsigned long __generic_copy_from_user(void *, const void __user *, unsigned lon | |||
626 | * @from: Source address, in user space. | 634 | * @from: Source address, in user space. |
627 | * @n: Number of bytes to copy. | 635 | * @n: Number of bytes to copy. |
628 | * | 636 | * |
629 | * Context: User context only. This function may sleep. | 637 | * Context: User context only. This function may sleep if pagefaults are |
638 | * enabled. | ||
630 | * | 639 | * |
631 | * Copy data from user space to kernel space. | 640 | * Copy data from user space to kernel space. |
632 | * | 641 | * |
@@ -677,7 +686,8 @@ unsigned long clear_user(void __user *mem, unsigned long len); | |||
677 | * strlen_user: - Get the size of a string in user space. | 686 | * strlen_user: - Get the size of a string in user space. |
678 | * @str: The string to measure. | 687 | * @str: The string to measure. |
679 | * | 688 | * |
680 | * Context: User context only. This function may sleep. | 689 | * Context: User context only. This function may sleep if pagefaults are |
690 | * enabled. | ||
681 | * | 691 | * |
682 | * Get the size of a NUL-terminated string in user space. | 692 | * Get the size of a NUL-terminated string in user space. |
683 | * | 693 | * |