[stgt] [PATCH] Fix AIO backing store not being registered

Roi Dayan roid at mellanox.com
Mon Nov 4 15:42:53 CET 2013


Missing the constructor attribute

Signed-off-by: Roi Dayan <roid at mellanox.com>
---
 usr/bs_aio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/bs_aio.c b/usr/bs_aio.c
index 32ceec5..1f46a2a 100644
--- a/usr/bs_aio.c
+++ b/usr/bs_aio.c
@@ -414,7 +414,7 @@ static struct backingstore_template aio_bst = {
 	.bs_cmd_submit  	= bs_aio_cmd_submit,
 };
 
-void register_bs_module(void)
+__attribute__((constructor)) static void register_bs_module(void)
 {
 	register_backingstore_template(&aio_bst);
 }
-- 
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list