| @@ -81,22 +81,20 @@ int futex_hash_prctl(unsigned long arg2, unsigned long arg3, unsigned long arg4) · 80 unmodified lines |
| 81 | 81 | #ifdef CONFIG_FUTEX_PRIVATE_HASH |
| 82 | 82 | int futex_hash_allocate_default(void); |
| 83 | 83 | void futex_hash_free(struct mm_struct *mm); |
| 84 | | −int futex_mm_init(struct mm_struct *mm); |
| 85 | | − |
| 86 | | −#else /* !CONFIG_FUTEX_PRIVATE_HASH */ |
| 84 | +void futex_mm_init(struct mm_struct *mm); |
| 85 | +#else /* CONFIG_FUTEX_PRIVATE_HASH */ |
| 87 | 86 | static inline int futex_hash_allocate_default(void) { return 0; } |
| 88 | 87 | static inline int futex_hash_free(struct mm_struct *mm) { return 0; } |
| 89 | | −static inline int futex_mm_init(struct mm_struct *mm) { return 0; } |
| 90 | | −#endif /* CONFIG_FUTEX_PRIVATE_HASH */ |
| 88 | +static inline void futex_mm_init(struct mm_struct *mm) { } |
| 89 | +#endif /* !CONFIG_FUTEX_PRIVATE_HASH */ |
| 91 | 90 | |
| 92 | | −#else /* !CONFIG_FUTEX */ |
| 91 | +#else /* CONFIG_FUTEX */ |
| 93 | 92 | static inline void futex_init_task(struct task_struct *tsk) { } |
| 94 | 93 | static inline void futex_exit_recursive(struct task_struct *tsk) { } |
| 95 | 94 | static inline void futex_exit_release(struct task_struct *tsk) { } |
| 96 | 95 | static inline void futex_exec_release(struct task_struct *tsk) { } |
| 97 | | −static inline long do_futex(u32 __user *uaddr, int op, u32 val, |
| 98 | | − ktime_t *timeout, u32 __user *uaddr2, |
| 99 | | − u32 val2, u32 val3) |
| 96 | +static inline long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout, |
| 97 | + u32 __user *uaddr2, u32 val2, u32 val3) |
| 100 | 98 | { |
| 101 | 99 | return -EINVAL; |
| 102 | 100 | } |
| @@ -104,13 +102,9 @@ static inline int futex_hash_prctl(unsigned long arg2, unsigned long arg3, unsig · 1 unmodified line |
| 104 | 102 | { |
| 105 | 103 | return -EINVAL; |
| 106 | 104 | } |
| 107 | | −static inline int futex_hash_allocate_default(void) |
| 108 | | −{ |
| 109 | | − return 0; |
| 110 | | −} |
| 105 | +static inline int futex_hash_allocate_default(void) { return 0; } |
| 111 | 106 | static inline int futex_hash_free(struct mm_struct *mm) { return 0; } |
| 112 | | −static inline int futex_mm_init(struct mm_struct *mm) { return 0; } |
| 113 | | − |
| 114 | | −#endif |
| 107 | +static inline void futex_mm_init(struct mm_struct *mm) { } |
| 108 | +#endif /* !CONFIG_FUTEX */ |
| 115 | 109 | |
| 116 | | −#endif |
| 110 | +#endif /* _LINUX_FUTEX_H */ |