Skip to content

Commit

Permalink
add further __init annotations to crypto/xor.c
Browse files Browse the repository at this point in the history
Allow particularly do_xor_speed() to be discarded post-init.

Signed-off-by: Jan Beulich <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
  • Loading branch information
jbeulich authored and neilbrown committed Oct 11, 2012
1 parent 761becf commit af7cf25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af7cf25

Please sign in to comment.