]> 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>
Thu, 27 Sep 2012 07:29:11 +0000 (17:29 +1000)
commit5ca573b894e5efd072a90c1364dbf5774e867911
tree8f4ac79d57921b5d23e650c9dcde0ddb91316405
parentfe0277256583258493ebc1e8a9b932e763c29a22
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