Skip to content
Commit 7124330d authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

m68k/uaccess: Revive 64-bit get_user()

Revive support for 64-bit get_user(), which was disabled in commit
d94af931

 ("[PATCH] m68k: clean up uaccess.h") due to a "broken"
typeof in (then brand new) gcc-4.1.

  - Keep on using u64 for the temporary, as __typeof__() doesn't drop
    the const qualifier,
  - Move it into a union (like mips32 does) to get rid of the cast, as
    using get_user() to fetch a __user pointer would cause a "cast to
    pointer from integer of different size" warning otherwise.

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarMartijn Coenen <maco@android.com>
parent d8441ba8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment