Re: [PATCH v3] hwrng: core - use RCU and work_struct to fix race condition

From: Herbert Xu

Date: Thu Jan 29 2026 - 00:15:25 EST


On Thu, Jan 29, 2026 at 07:10:52AM +0900, Lianjie Wang wrote:
>
> diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h
> index b424555753b1..2ccfd081a94a 100644
> --- a/include/linux/hw_random.h
> +++ b/include/linux/hw_random.h
> @@ -15,6 +15,7 @@
> #include <linux/completion.h>
> #include <linux/kref.h>
> #include <linux/types.h>
> +#include <linux/workqueue.h>

Please use workqueue_types.h instead.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt