[Concept,05/10] fs: Include linux/blk_types.h for REQ_OP_READ

Message ID 20260418004014.1889749-6-sjg@u-boot.org
State New
Headers
Series efi-x86: boot Ubuntu live ISOs via U-Boot + BLS |

Commit Message

Simon Glass April 18, 2026, 12:39 a.m. UTC
  From: Simon Glass <sjg@chromium.org>

linux_fs_read_block() calls submit_bh() with REQ_OP_READ, but neither
linux/bio.h nor any other current include declares it. The file only
happens to compile when an unrelated header in the include chain
transitively pulls in <linux/blk_types.h>; once that chain changes (e.g.
when reshuffling the atomic includes) the build breaks.

Include it explicitly so the file no longer depends on transitive
include order.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 fs/linux_fs.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/fs/linux_fs.c b/fs/linux_fs.c
index 581df65432a..f922bed3b84 100644
--- a/fs/linux_fs.c
+++ b/fs/linux_fs.c
@@ -25,6 +25,7 @@ 
 #include <linux/pagemap.h>
 #include <linux/slab.h>
 #include <linux/bio.h>
+#include <linux/blk_types.h>
 #include <asm/atomic.h>
 
 #if IS_ENABLED(CONFIG_FS_EXT4L)