]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/decompress.c add __init to decompress_method and data
authorHein Tibosch <hein_tibosch@yahoo.es>
Fri, 21 Sep 2012 01:03:36 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:59:30 +0000 (15:59 +1000)
commit69921c36f9e0e4e7952fa2583bf2d33713835eaf
treef13b38d18cbcef59ff91eb1a5c215f4c85dbd212
parent7ddc65afb7b1bbfdc0b050af595975edc70037f6
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