x86/uaccess: Remove unused __addr_ok() macro
authorBorislav Petkov <bp@suse.de>
Mon, 25 Feb 2019 19:08:27 +0000 (20:08 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 25 Feb 2019 22:13:05 +0000 (23:13 +0100)
commit2e7614c0736de93c8796bb2d58debb8871a59db8
treece4b0b0fb1ffeff934a0fda26f25fd66703f804d
parentf91fecc09e498529230b4d5053cb361619a0c42d
x86/uaccess: Remove unused __addr_ok() macro

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.

Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Jann Horn <jannh@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: the arch/x86 maintainers <x86@kernel.org>
Cc: "Tobin C. Harding" <tobin@kernel.org>
Link: https://lkml.kernel.org/r/20190225191109.7671-1-bp@alien8.de
arch/x86/include/asm/uaccess.h