Revert "ANDROID: GKI: Add ‘kunit.enable’ module parameter"

This reverts commit 25de28e49e as it
conflicts with upstream kunit changes in 6.0-rc1.

If it is still needed, please submit it usptream as it is adding a new
user/kernel api for some unknown reason.

Bug: 231160619
Cc: Joe Fradley <joefradley@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I12650bf4ca232cf416969c1b032003df80125ffc
This commit is contained in:
Greg Kroah-Hartman
2022-08-04 16:59:06 +02:00
parent 309ee5fffd
commit 76d3a9d92e

View File

@@ -52,13 +52,6 @@ void __kunit_fail_current_test(const char *file, int line, const char *fmt, ...)
EXPORT_SYMBOL_GPL(__kunit_fail_current_test);
#endif
/*
* Enable KUnit tests to run.
*/
static bool enable_param;
module_param_named(enable, enable_param, bool, 0);
MODULE_PARM_DESC(enable, "Enable KUnit tests to run");
/*
* KUnit statistic mode:
* 0 - disabled
@@ -592,12 +585,6 @@ int __kunit_test_suites_init(struct kunit_suite * const * const suites)
{
unsigned int i;
if (!enable_param) {
pr_info("kunit: deactivated, cannot load %s\n",
suites != NULL ? suites[0]->name : "NULL");
return -1;
}
for (i = 0; suites[i] != NULL; i++) {
kunit_init_suite(suites[i]);
kunit_run_tests(suites[i]);
@@ -615,9 +602,6 @@ void __kunit_test_suites_exit(struct kunit_suite **suites)
{
unsigned int i;
if (!enable_param)
return;
for (i = 0; suites[i] != NULL; i++)
kunit_exit_suite(suites[i]);