This was caught while staring at the whole {set,get}_fs() machinery. It's last user, the 32-bit version of strnlen_user() went away with 5723aa993d83 ("x86: use the new generic strnlen_user() function") so drop it. No functional changes.
Unified · Split
| @@ -35,10 +35,7 @@ static inline void set_fs(mm_segment_t fs) · 34 unmodified lines | |||
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | #define segment_eq(a, b) ((a).seg == (b).seg) | 37 | #define segment_eq(a, b) ((a).seg == (b).seg) |
| 38 | |||
| 39 | #define user_addr_max() (current->thread.addr_limit.seg) | 38 | #define user_addr_max() (current->thread.addr_limit.seg) |
| 40 | #define __addr_ok(addr) \ | ||
| 41 | ((unsigned long __force)(addr) < user_addr_max()) | ||
| 42 | 39 | ||
| 43 | /* | 40 | /* |
| 44 | * Test whether a block of memory is a valid user space address. | 41 | * Test whether a block of memory is a valid user space address. |