]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49173fe5376a9f102aaed9d913a74e057d199614
treea3b4ec2ad2e3e288507a6b3948dd24a6761ce79f
parent7a372e7bc41318b0e36d267662344a7e19a55902
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