]> git.baikalelectronics.ru Git - kernel.git/commit
x86: remove pointless uaccess_32.h complexity
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 May 2016 21:19:37 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 May 2016 21:19:37 +0000 (14:19 -0700)
commit682b77b5b15c58e191b6656356981e11c28795e1
tree899fbf0a4255f76ae18d280b216b8ddede02512b
parentf784b3522720fe35824b0d2c7170cac4009599bf
x86: remove pointless 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_to_user_inatomic()" is mostly
the special cases for the constant size, and it's actually never
relevant.  Every user except for one aren't actually using a constant
size anyway, and the one user that uses it is better off just using
__put_user() instead.

So get rid of the unnecessary complexity.

[ The same cleanup should likely happen to __copy_from_user_inatomic()
  as well, but that one has a lot more users that I need to take a look
  at first ]

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/uaccess_32.h
drivers/gpu/drm/i915/i915_gem_execbuffer.c