Thread (14 messages) 14 messages, 5 authors, 6d ago

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

flat view
COOLING6d

From: Petr Pavlu <petr.pavlu@suse.com>
Date: 2026-09-11 15:05:15
Also in: dri-devel, intel-gfx, intel-xe, linux-block, linux-modules, lkml, netdev
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

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.

Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
---
 block/blk-core.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/block/blk-core.c b/block/blk-core.c
index 196bccf27f58..324a2d1bb727 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -40,6 +40,7 @@
 #include <linux/part_stat.h>
 #include <linux/sched/sysctl.h>
 #include <linux/blk-crypto.h>
+#include <linux/error-injection.h>
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/block.h>
-- 
2.55.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help