mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] add further __init annotations to crypto/xor.c
@ 2012-09-10 12:11 Jan Beulich
  2012-09-11  6:05 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2012-09-10 12:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: Borislav Petkov, herbert, james.t.kukunas, neilb

Allow particularly do_xor_speed() to be discarded post-init.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

---
 crypto/xor.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 3.6-rc5/crypto/xor.c
+++ 3.6-rc5-sections-xor/crypto/xor.c
@@ -56,11 +56,11 @@ xor_blocks(unsigned int src_count, unsig
 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;




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-11  6:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-10 12:11 [PATCH] add further __init annotations to crypto/xor.c Jan Beulich
2012-09-11  6:05 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®