kbuild: introduce __init_refok/__initdata_refok to supress section mismatch warnings
authorSam Ravnborg <sam@ravnborg.org>
Thu, 17 May 2007 18:14:48 +0000 (20:14 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 19 May 2007 07:11:58 +0000 (09:11 +0200)
Throughout the kernel there are a few legitimite references
to init or exit sections. Most of these are covered by the
patterns included in modpost but a few nees special attention.
To avoid hardcoding a lot of function names in modpost introduce
a marker so relevant function/data can be marked.
When modpost see a reference to a init/exit function from
a function/data marked no warning will be issued.

Idea from: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>

No differences found