Re: [PATCH 1/6] block: Include error-injection.h for ALLOW_ERROR_INJECTION()

From: Jens Axboe

Date: Fri Sep 11 2026 - 11:22:08 EST


On 9/11/26 9:04 AM, Petr Pavlu wrote:
> block/blk-core.c uses ALLOW_ERROR_INJECTION(), which is defined in
> asm-generic/error-injection.h. It currently relies on this header being
> included indirectly through linux/module.h -> linux/error-injection.h.
>
> Add the missing include in preparation for removing the
> linux/error-injection.h include from linux/module.h.

Reviewed-by: Jens Axboe <axboe@xxxxxxxxx>

if you want to shove this upstream somewhere else.

--
Jens Axboe