exit: Rename complete_and_exit to kthread_complete_and_exit
[linux-2.6-microblaze.git] / lib / kunit / try-catch.c
index 0dd434e..be38a2c 100644 (file)
@@ -17,7 +17,7 @@
 void __noreturn kunit_try_catch_throw(struct kunit_try_catch *try_catch)
 {
        try_catch->try_result = -EFAULT;
-       complete_and_exit(try_catch->try_completion, -EFAULT);
+       kthread_complete_and_exit(try_catch->try_completion, -EFAULT);
 }
 EXPORT_SYMBOL_GPL(kunit_try_catch_throw);
 
@@ -27,7 +27,7 @@ static int kunit_generic_run_threadfn_adapter(void *data)
 
        try_catch->try(try_catch->context);
 
-       complete_and_exit(try_catch->try_completion, 0);
+       kthread_complete_and_exit(try_catch->try_completion, 0);
 }
 
 static unsigned long kunit_test_timeout(void)