Re: [PATCH 5/5] checkpatch: fix false EXPORT_SYMBOL warning

From: Daniel Walker
Date: Thu Oct 01 2009 - 10:28:27 EST


On Wed, 2009-09-30 at 18:46 +0100, Andy Whitcroft wrote:

> In theory the thing we are exporting can be an arbitrary number of lines
> prior to the EXPORT_SYMBOL statement. We actually want to look at the
> statement before the EXPORT_*.

Why not maintain a variable that holds the name of the function of
structure that is currently getting parsed .. So that you wouldn't need
to look back X lines to find anything ? Or did you do that in the
0.29-5-* version?

Daniel

--
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/