Re: is avoiding compat ioctls possible?

David Miller
2009-10-28T08:11:19Z

From: Andi Kleen <andi@firstfloor.org>
Date: Wed, 28 Oct 2009 08:59:08 +0100

>> }
>> - chunk_array_ptr = (uint64_t *)(unsigned long)(cs->chunks);
>> +#ifdef CONFIG_COMPAT
>> + if (is_compat_task())
>
> Are the COMPAT ifdefs really needed? The compiler should optimize that
> away anyways on non compat aware architectures, shouldn't it?

There are no non-compat is_compat_task() definitions, nor are there
non-compat build definitions of compat_uptr_t and the assosciated
interfaces.