Skip to contentSkip to conversation

add further __init annotations to crypto/xor.c

PATCH Applied Jan Beulich 2 participants 2 messages Sep 10, 2012 – Sep 11, 2012 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add further __init annotations to crypto/xor.c

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

---
 crypto/xor.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
crypto/xor.c +2 -2
@@ -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;
Applied
#1 lore raw
Quoted 28 lines · On Mon, 10 Sep 2012 13:11:56 +0100 "Jan Beulich" <[email protected]> wrote:

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

---
 crypto/xor.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
crypto/xor.c +2 -3
@@ -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;
 
 
 
--
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

applied, thanks.
NeilBrown