diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-s390/futex.h | 15 | ||||
| -rw-r--r-- | include/linux/elevator.h | 2 | ||||
| -rw-r--r-- | include/linux/mempolicy.h | 1 |
3 files changed, 10 insertions, 8 deletions
diff --git a/include/asm-s390/futex.h b/include/asm-s390/futex.h index 40c25e166a9b..1802775568b9 100644 --- a/include/asm-s390/futex.h +++ b/include/asm-s390/futex.h | |||
| @@ -11,23 +11,24 @@ | |||
| 11 | #define __futex_atomic_fixup \ | 11 | #define __futex_atomic_fixup \ |
| 12 | ".section __ex_table,\"a\"\n" \ | 12 | ".section __ex_table,\"a\"\n" \ |
| 13 | " .align 4\n" \ | 13 | " .align 4\n" \ |
| 14 | " .long 0b,2b,1b,2b\n" \ | 14 | " .long 0b,4b,2b,4b,3b,4b\n" \ |
| 15 | ".previous" | 15 | ".previous" |
| 16 | #else /* __s390x__ */ | 16 | #else /* __s390x__ */ |
| 17 | #define __futex_atomic_fixup \ | 17 | #define __futex_atomic_fixup \ |
| 18 | ".section __ex_table,\"a\"\n" \ | 18 | ".section __ex_table,\"a\"\n" \ |
| 19 | " .align 8\n" \ | 19 | " .align 8\n" \ |
| 20 | " .quad 0b,2b,1b,2b\n" \ | 20 | " .quad 0b,4b,2b,4b,3b,4b\n" \ |
| 21 | ".previous" | 21 | ".previous" |
| 22 | #endif /* __s390x__ */ | 22 | #endif /* __s390x__ */ |
| 23 | 23 | ||
| 24 | #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ | 24 | #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ |
| 25 | asm volatile(" l %1,0(%6)\n" \ | 25 | asm volatile(" sacf 256\n" \ |
| 26 | "0: " insn \ | 26 | "0: l %1,0(%6)\n" \ |
| 27 | " cs %1,%2,0(%6)\n" \ | 27 | "1: " insn \ |
| 28 | "1: jl 0b\n" \ | 28 | "2: cs %1,%2,0(%6)\n" \ |
| 29 | "3: jl 1b\n" \ | ||
| 29 | " lhi %0,0\n" \ | 30 | " lhi %0,0\n" \ |
| 30 | "2:\n" \ | 31 | "4: sacf 0\n" \ |
| 31 | __futex_atomic_fixup \ | 32 | __futex_atomic_fixup \ |
| 32 | : "=d" (ret), "=&d" (oldval), "=&d" (newval), \ | 33 | : "=d" (ret), "=&d" (oldval), "=&d" (newval), \ |
| 33 | "=m" (*uaddr) \ | 34 | "=m" (*uaddr) \ |
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index ad133fcfb239..1713ace808bf 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h | |||
| @@ -21,7 +21,7 @@ typedef void (elevator_put_req_fn) (request_queue_t *, struct request *); | |||
| 21 | typedef void (elevator_activate_req_fn) (request_queue_t *, struct request *); | 21 | typedef void (elevator_activate_req_fn) (request_queue_t *, struct request *); |
| 22 | typedef void (elevator_deactivate_req_fn) (request_queue_t *, struct request *); | 22 | typedef void (elevator_deactivate_req_fn) (request_queue_t *, struct request *); |
| 23 | 23 | ||
| 24 | typedef int (elevator_init_fn) (request_queue_t *, elevator_t *); | 24 | typedef void *(elevator_init_fn) (request_queue_t *, elevator_t *); |
| 25 | typedef void (elevator_exit_fn) (elevator_t *); | 25 | typedef void (elevator_exit_fn) (elevator_t *); |
| 26 | 26 | ||
| 27 | struct elevator_ops | 27 | struct elevator_ops |
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 6a7621b2b12b..f5fdca1d67e6 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
| @@ -36,6 +36,7 @@ | |||
| 36 | #include <linux/nodemask.h> | 36 | #include <linux/nodemask.h> |
| 37 | 37 | ||
| 38 | struct vm_area_struct; | 38 | struct vm_area_struct; |
| 39 | struct mm_struct; | ||
| 39 | 40 | ||
| 40 | #ifdef CONFIG_NUMA | 41 | #ifdef CONFIG_NUMA |
| 41 | 42 | ||
