Commit af7cf25d authored by Jan Beulich's avatar Jan Beulich Committed by NeilBrown

add further __init annotations to crypto/xor.c

Allow particularly do_xor_speed() to be discarded post-init.
Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 761becff
...@@ -56,11 +56,11 @@ xor_blocks(unsigned int src_count, unsigned int bytes, void *dest, void **srcs) ...@@ -56,11 +56,11 @@ xor_blocks(unsigned int src_count, unsigned int bytes, void *dest, void **srcs)
EXPORT_SYMBOL(xor_blocks); EXPORT_SYMBOL(xor_blocks);
/* Set of all registered templates. */ /* 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) #define BENCH_SIZE (PAGE_SIZE)
static void static void __init
do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
{ {
int speed; int speed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment