[PATCH] kbuild: simplify section mismatch check in modpost
From: Sam Ravnborg
Date: Sun Jan 13 2008 - 16:34:21 EST
In another thread I mentioned the idea to introduce additional
sections for all the __init markers.
Introducing checks for all the new combinations in modpost
turned out to be difficult so I decided to clean up
what we have today by introducing a table based approach.
The patch below is the result of this effort.
I have pushed out kbuild.git with this change so grab it there
if you like to play with it.
Comments are welcome.
The pattern_cmp() includes support for "*foo*" but that is not
yet used. I know it has a memory leak...
If someone has a better implmentation that does not pull
in any regexp library let me know.
Sam