summaryrefslogtreecommitdiff
path: root/include/kunit/try-catch.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-01-29 15:25:34 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2020-01-29 15:25:34 -0800
commit08a3ef8f6b0b1341c670caba35f782c9a452d488 (patch)
tree89122bbdc200ced0fa2921cb5a513abe5cc2e8c0 /include/kunit/try-catch.h
parentce7ae9d9fe4391413db680ce0732da2144b6f4a3 (diff)
parent35c57fc3f8eac81b38664a0fe160e267b908d8b8 (diff)
downloadlwn-08a3ef8f6b0b1341c670caba35f782c9a452d488.tar.gz
lwn-08a3ef8f6b0b1341c670caba35f782c9a452d488.zip
Merge tag 'linux-kselftest-5.6-rc1-kunit' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull Kselftest kunit updates from Shuah Khan: "This kunit update consists of: - Support for building kunit as a module from Alan Maguire - AppArmor KUnit tests for policy unpack from Mike Salvatore" * tag 'linux-kselftest-5.6-rc1-kunit' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: kunit: building kunit as a module breaks allmodconfig kunit: update documentation to describe module-based build kunit: allow kunit to be loaded as a module kunit: remove timeout dependence on sysctl_hung_task_timeout_seconds kunit: allow kunit tests to be loaded as a module kunit: hide unexported try-catch interface in try-catch-impl.h kunit: move string-stream.h to lib/kunit apparmor: add AppArmor KUnit tests for policy unpack
Diffstat (limited to 'include/kunit/try-catch.h')
-rw-r--r--include/kunit/try-catch.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/kunit/try-catch.h b/include/kunit/try-catch.h
index 404f336cbdc8..c507dd43119d 100644
--- a/include/kunit/try-catch.h
+++ b/include/kunit/try-catch.h
@@ -53,11 +53,6 @@ struct kunit_try_catch {
void *context;
};
-void kunit_try_catch_init(struct kunit_try_catch *try_catch,
- struct kunit *test,
- kunit_try_catch_func_t try,
- kunit_try_catch_func_t catch);
-
void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context);
void __noreturn kunit_try_catch_throw(struct kunit_try_catch *try_catch);
@@ -67,9 +62,4 @@ static inline int kunit_try_catch_get_result(struct kunit_try_catch *try_catch)
return try_catch->try_result;
}
-/*
- * Exposed for testing only.
- */
-void kunit_generic_try_catch_init(struct kunit_try_catch *try_catch);
-
#endif /* _KUNIT_TRY_CATCH_H */