asm-generic: kill <asm/segment.h> and improve nommu generic uaccess helpers

Christoph Hellwig writes:

  This is a series doing two somewhat interwinded things.  It improves
  the asm-generic nommu uaccess helper to optionally be entirely generic
  and not require any arch helpers for the actual uaccess.  For the
  generic uaccess.h to actually be generically useful I also had to kill
  off the mess we made of <asm/segment.h>, which really shouldn't exist
  on most architectures.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCAAGBQJc3cgGAAoJEGCrR//JCVInLjgQANRypQ7QLflsPuD3koEdqO3U
g7lXdycRhsH+XK/zV8s2UWsjCCMOIADAsrQ2iuWx62Xode0wjPmDn+HyTvAckwJC
ugFty5ULAD+tnmqlem/rE91u2u0Mt4KK5l4L+QEo9AuOE4F01cnzeWvMQN1Cc/tQ
a6+EUatiTk72NLSlDVkY+a4hgrfzNYxdqdpFc6dX1nOdQWgnY/rOZAmI9d4+zGLO
SxfHhZFu7SXrMwuir5PxbViqUK81jtnSi/noz/YLtS4WXyj1DvxgSqyI35QruzxG
f25YvaKbpU8EA2VDx1e8Kyj2hPg573kK/wKRsZPrt13X8BMVjTaPMsumvCfVZpD8
dUEMmk+ZiAQV3VuVRsql/5T5PE3nZdiPvU3gOxzC4CXMX/8cXvF6rZv10poDmFpk
KRvW+lcBRSpAeq6A1l04vNYD87sQK1xnK4xgLwZ4ntGp0CBYd8Z+dzjlbQrwGuBa
FxkwjmNm7CLFUdlkEg5S0rSc/AwWZPk9UKX6OB3iCuSWQxk5pJ1RodGkJIdKsQkL
JUHZ5dXfkmvgp/EHMGLq2u23Vag9nURkD3M6BCsaQYmYdLsTEwwHOMYw8IWmIOLa
kzF6Ii0XP9hjXsWmNWusYiL9bdNd2ZEqqX+T6eFqO+pEOkbNsiXo/Qs03SW2A5gh
Rts71+Xy02DYqJ5ogOQ0
=k8C2
-----END PGP SIGNATURE-----
asm-generic: optimize generic uaccess for 8-byte loads and stores

On 64-bit architectures we can also use the direct load/store trick for
8-byte values.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 file changed