Commit 730f412c08c13858f7681bac0a2770fbc9159fed
Committed by
Linus Torvalds
1 parent
07132922aa
Exists in
master
and in
7 other branches
asm-*/futex.h should include linux/uaccess.h
Lots of asm-*/futex.h call pagefault_enable and pagefault_disable, which are declared in linux/uaccess.h, without including linux/uaccess.h. They all include asm/uaccess.h, so this patch replaces asm/uaccess.h with linux/uaccess.h. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: "Luck, Tony" <tony.luck@intel.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mundt <lethal@linux-sh.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 8 changed files with 8 additions and 8 deletions Side-by-side Diff
include/asm-generic/futex.h
include/asm-ia64/futex.h
include/asm-mips/futex.h
... | ... | @@ -11,9 +11,9 @@ |
11 | 11 | #ifdef __KERNEL__ |
12 | 12 | |
13 | 13 | #include <linux/futex.h> |
14 | +#include <linux/uaccess.h> | |
14 | 15 | #include <asm/barrier.h> |
15 | 16 | #include <asm/errno.h> |
16 | -#include <asm/uaccess.h> | |
17 | 17 | #include <asm/war.h> |
18 | 18 | |
19 | 19 | #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ |
include/asm-parisc/futex.h
include/asm-powerpc/futex.h
include/asm-sh/futex.h
include/asm-sparc64/futex.h
include/asm-x86/futex.h
... | ... | @@ -4,12 +4,12 @@ |
4 | 4 | #ifdef __KERNEL__ |
5 | 5 | |
6 | 6 | #include <linux/futex.h> |
7 | +#include <linux/uaccess.h> | |
7 | 8 | |
8 | 9 | #include <asm/asm.h> |
9 | 10 | #include <asm/errno.h> |
10 | 11 | #include <asm/processor.h> |
11 | 12 | #include <asm/system.h> |
12 | -#include <asm/uaccess.h> | |
13 | 13 | |
14 | 14 | #define __futex_atomic_op1(insn, ret, oldval, uaddr, oparg) \ |
15 | 15 | asm volatile("1:\t" insn "\n" \ |