]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
add further __init annotations to crypto/xor.c
authorJan Beulich <JBeulich@suse.com>
Mon, 24 Sep 2012 06:41:29 +0000 (16:41 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 24 Sep 2012 06:41:29 +0000 (16:41 +1000)
Allow particularly do_xor_speed() to be discarded post-init.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: NeilBrown <neilb@suse.de>
crypto/xor.c

index 65c7b416b4a3e4d9e2ad08c41a1fcec06e222f8e..35d6b3adf2308fbb4ab2bd7d3358b8328bff8936 100644 (file)
@@ -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;