Re: is avoiding compat ioctls possible?

David Miller
2009-10-28T03:38:15Z

From: Dave Airlie <airlied@gmail.com>
Date: Wed, 28 Oct 2009 13:05:08 +1000

> DrNick on irc suggested just doing:
> if (is_compat_task()) ptr &= 0x00000000FFFFFFFF;
>
> Is there a one liner I can just do in the actual ioctls instead of
> adding 20 compat
> ones?

Just do the right thing and pass all userland compat pointers
through the correct compat_*() macros.