Re: [PATCH] [4/6] kfifo: add kfifo_out_peek

From: Alan Cox
Date: Mon Jan 04 2010 - 17:21:31 EST


> Macros are unpopular, for good reasons. But the case for a
> template-based container such as this is a good one. However I worry
> about the code bloat whcih the macro version might add. We worry about
> all this later on.

Its really a special case for structs and fixed objects.

Bloat is going to be a big issue if its macro and all the serial/tty
stuff switches to it. Please keep the bytewise one none macro - even if
its a lib/foo.c file that simply uses the macros to produce the existing
new API.
--
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/