]> git.baikalelectronics.ru Git - kernel.git/commit
x86: remove more uaccess_32.h complexity
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 May 2016 00:21:27 +0000 (17:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 May 2016 00:21:27 +0000 (17:21 -0700)
commit9943ffe14c61bd930c0b45209085ff4e6e045f88
tree5cd165412fa7dec2dbbac28ff6d8d5b12d3011f4
parent682b77b5b15c58e191b6656356981e11c28795e1
x86: remove more uaccess_32.h complexity

I'm looking at trying to possibly merge the 32-bit and 64-bit versions
of the x86 uaccess.h implementation, but first this needs to be cleaned
up.

For example, the 32-bit version of "__copy_from_user_inatomic()" is
mostly the special cases for the constant size, and it's actually almost
never relevant.  Most users aren't actually using a constant size
anyway, and the few cases that do small constant copies are better off
just using __get_user() instead.

So get rid of the unnecessary complexity.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/uaccess_32.h
kernel/events/uprobes.c
kernel/futex.c
mm/maccess.c