Re: [PATCH linux-kselftest-test 2/3] kunit: allow kunit to be loaded as a module
From: Andy Shevchenko
Date: Tue Oct 08 2019 - 10:56:00 EST
On Tue, Oct 08, 2019 at 03:43:51PM +0100, Alan Maguire wrote:
> Making kunit itself buildable as a module allows for "always-on"
> kunit configuration; specifying CONFIG_KUNIT=m means the module
> is built but only used when loaded. Kunit test modules will load
> kunit.ko as an implicit dependency, so simply running
> "modprobe my-kunit-tests" will load the tests along with the kunit
> module and run them.
> +#ifdef MODULE
> +#endif /* MODULE */
This is strange. Why do you need ifdef?
With Best Regards,