aboutsummaryrefslogtreecommitdiffstats
path: root/module/splat/splat-kobj.c
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2016-12-14 18:24:47 -0800
committerBrian Behlendorf <[email protected]>2016-12-15 11:30:11 -0800
commit9c9ad845ef372a4c47a01c20e939fd2c40bc7ac6 (patch)
tree81975a6019ca294556aecdeb180ad6b00a1fe50b /module/splat/splat-kobj.c
parent71a3c9c45d7829994d3d66f014410f7c223f88f7 (diff)
Refactor some splat macro to function
Refactor the code by making splat_test_{init,fini}, splat_subsystem_{init,fini} into functions. They don't have reason to be macro and it would be too bloated to inline every call. Signed-off-by: Chunwei Chen <[email protected]>
Diffstat (limited to 'module/splat/splat-kobj.c')
-rw-r--r--module/splat/splat-kobj.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/splat/splat-kobj.c b/module/splat/splat-kobj.c
index a0d4097d5..6d78cb3e0 100644
--- a/module/splat/splat-kobj.c
+++ b/module/splat/splat-kobj.c
@@ -140,9 +140,9 @@ splat_kobj_init(void)
spin_lock_init(&sub->test_lock);
sub->desc.id = SPLAT_SUBSYSTEM_KOBJ;
- SPLAT_TEST_INIT(sub, SPLAT_KOBJ_TEST1_NAME, SPLAT_KOBJ_TEST1_DESC,
+ splat_test_init(sub, SPLAT_KOBJ_TEST1_NAME, SPLAT_KOBJ_TEST1_DESC,
SPLAT_KOBJ_TEST1_ID, splat_kobj_test1);
- SPLAT_TEST_INIT(sub, SPLAT_KOBJ_TEST2_NAME, SPLAT_KOBJ_TEST2_DESC,
+ splat_test_init(sub, SPLAT_KOBJ_TEST2_NAME, SPLAT_KOBJ_TEST2_DESC,
SPLAT_KOBJ_TEST2_ID, splat_kobj_test2);
return sub;
@@ -153,8 +153,8 @@ splat_kobj_fini(splat_subsystem_t *sub)
{
ASSERT(sub);
- SPLAT_TEST_FINI(sub, SPLAT_KOBJ_TEST2_ID);
- SPLAT_TEST_FINI(sub, SPLAT_KOBJ_TEST1_ID);
+ splat_test_fini(sub, SPLAT_KOBJ_TEST2_ID);
+ splat_test_fini(sub, SPLAT_KOBJ_TEST1_ID);
kfree(sub);
} /* splat_kobj_fini() */