]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
lib/decompress.c add __init to decompress_method and data
authorHein Tibosch <hein_tibosch@yahoo.es>
Wed, 26 Sep 2012 01:35:05 +0000 (11:35 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:43 +0000 (15:45 +1000)
commitdad0019944369f58c193c1991c39ffda7ff584d2
treea11a4f62465b3ce8b3913c4baa56b160ba12b2b3
parent758ef2c2688483b9113d93c4e847e1b5b4d370cf
lib/decompress.c add __init to decompress_method and data

WARNING: vmlinux.o(.text+0x14cfd8): Section mismatch in
reference from the variable compressed_formats to the function
.init.text:gunzip()
The function compressed_formats() references
the function __init gunzip().
etc..

This patch should solve it:

Within decompress.c, compressed_formats[] needs 'a __initdata annotation',
because some of it's data members refer to functions which will be
unloaded after init.

Consequently, its user decompress_method() will get the __init prefix.

Signed-off-by: Hein Tibosch <hein_tibosch@yahoo.es>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/decompress.c