We do "get_user(int,char *)" etc all the time. It's expected to work,
and do the proper zero- (or sign-) extension.
The x86 code does:
#define get_user(x, ptr)
...
(x) = (__typeof__(*(ptr)))__val_gu;
and that's the _only_ correct thing to do. That assignment, with the
proper type expansion, is absolutely vital. And there's no way you can
do that with any asm constructs, exactly because of the whole
sign/zero extension requirement.
If somebody only sets the low 32 bits of the result, that's simply a
bug. That's a seriously buggered uaccess.h.
So NAK on the patch, and please point to what architecture has this problem.
Linus
--