kunit: no longer call module_info(test, "Y") for kunit modules
authorJoe Fradley <joefradley@google.com>
Tue, 23 Aug 2022 14:24:55 +0000 (07:24 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 30 Sep 2022 19:17:49 +0000 (13:17 -0600)
commit7d97635b72813d80f909ad24d7a64b2fe9a29c0b
treea3b4ec2ad2e3e288507a6b3948dd24a6761ce79f
parentd20a6ba5e3be5f8d9002c6c5a5d4dfecc5dc48f9
kunit: no longer call module_info(test, "Y") for kunit modules

Because KUnit test execution is not a guarantee with the kunit.enable
parameter we want to be careful to only taint the kernel when actual
tests run. Calling module_info(test, "Y") for every KUnit module
automatically causes the kernel to be tainted upon module load. Therefore,
we're removing this call and relying on the KUnit framework to taint the
kernel or not.

Signed-off-by: Joe Fradley <joefradley@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h