Re: [PATCH] macros to detect existance of unlocked_ioctl and ioctl_compat

From: Andi Kleen
Date: Thu Jan 06 2005 - 10:42:18 EST


On Thu, Jan 06, 2005 at 03:14:29PM +0000, Christoph Hellwig wrote:
> On Thu, Jan 06, 2005 at 04:09:42PM +0100, Andi Kleen wrote:
> > I would agree that it shouldn't be used for in tree code, but for
> > out of tree code it is rather useful. There are other such feature macros
> > for major driver interface changes too (e.g. in the network stack).
>
> Which is the only place doing it. We had this discussion in the past
> (lastone I revolve Greg vetoed it). We simply shouldn't clutter our

I don't know who had this discussion and did this "decision", but
for record I disagree.

> headers for the sake of out of tree drivers - with LINUX_VERSION_CODE
> we've already implemented a mechanism for out of tree drivers.

That's incredibly ugly. I always hate these checks in source code
because it's never clear what exactly they are testing for.
And requires unreasonable work to find out when exactly the feature was
added. And it doesn't really work when there are backports in older trees.
In short there are many drawbacks. HAVE_* is much nicer.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/