RE: How to fix WARN from drivers/base/dd.c in next-20200401 if CONFIG_MODULES=y?

From: Yoshihiro Shimoda
Date: Mon Apr 06 2020 - 06:02:01 EST


Hi again,

<snip>
> I'm guessing we should add the following flush_work for deferred_probe_timeout_work().
> # Sorry, I didn't test this for some reasons yet though...
>
> + /* wait for the deferred probe timeout workqueue to finish */
> + if (driver_deferred_probe_timeout > 0)
> + flush_work(&deferred_probe_timeout_work);

I'm sorry. This code caused build error because the deferred_probe_timeout_work
is struct delayed_work. Also, I don't think using flush_delayed_work() is
my expectation (wait until the timeout of deferred)...

Best regards,
Yoshihiro Shimoda