// SPDX-License-Identifier: GPL-2.0 /* * An API to allow a function, that may fail, to be executed, and recover in a * controlled manner. * * Copyright (C) 2019, Google LLC. * Author: Brendan Higgins <[email protected]> */ #include <kunit/test.h> #include <linux/completion.h> #include <linux/kernel.h> #include <linux/kthread.h> #include <linux/sched/task.h> #include "try-catch-impl.h" void __noreturn kunit_try_catch_throw(struct kunit_try_catch *try_catch) { … } EXPORT_SYMBOL_GPL(…); static int kunit_generic_run_threadfn_adapter(void *data) { … } static unsigned long kunit_test_timeout(void) { … } void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context) { … } EXPORT_SYMBOL_GPL(…);