From: Jan Beulich Date: Thu, 11 Oct 2012 02:42:32 +0000 (+1100) Subject: add further __init annotations to crypto/xor.c X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=af7cf25dd15b74a78bff8ed5dc969b20dae9554d;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git add further __init annotations to crypto/xor.c Allow particularly do_xor_speed() to be discarded post-init. Signed-off-by: Jan Beulich Signed-off-by: NeilBrown --- diff --git a/crypto/xor.c b/crypto/xor.c index 65c7b416b4a3..35d6b3adf230 100644 --- a/crypto/xor.c +++ b/crypto/xor.c @@ -56,11 +56,11 @@ xor_blocks(unsigned int src_count, unsigned int bytes, void *dest, void **srcs) EXPORT_SYMBOL(xor_blocks); /* Set of all registered templates. */ -static struct xor_block_template *template_list; +static struct xor_block_template *__initdata template_list; #define BENCH_SIZE (PAGE_SIZE) -static void +static void __init do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) { int speed;