diff options
| author | Jan Beulich <JBeulich@suse.com> | 2012-10-10 22:42:32 -0400 |
|---|---|---|
| committer | NeilBrown <neilb@suse.de> | 2012-10-10 22:42:32 -0400 |
| commit | af7cf25dd15b74a78bff8ed5dc969b20dae9554d (patch) | |
| tree | 69832663631b0dfc29b461ea6e13dfc201cd261e | |
| parent | 761becff016b82a6a7a1b2ef224248da5f46bae9 (diff) | |
add further __init annotations to crypto/xor.c
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>
| -rw-r--r-- | crypto/xor.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
| 56 | EXPORT_SYMBOL(xor_blocks); | 56 | EXPORT_SYMBOL(xor_blocks); |
| 57 | 57 | ||
| 58 | /* Set of all registered templates. */ | 58 | /* Set of all registered templates. */ |
| 59 | static struct xor_block_template *template_list; | 59 | static struct xor_block_template *__initdata template_list; |
| 60 | 60 | ||
| 61 | #define BENCH_SIZE (PAGE_SIZE) | 61 | #define BENCH_SIZE (PAGE_SIZE) |
| 62 | 62 | ||
| 63 | static void | 63 | static void __init |
| 64 | do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) | 64 | do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) |
| 65 | { | 65 | { |
| 66 | int speed; | 66 | int speed; |
