[Concept,05/26] linux: Add blk_types.h with blk_opf_t

Message ID 20251222115639.700578-6-sjg@u-boot.org
State New
Headers
Series fs: ext4l: Add support for mounting ext4 filesystems (part G) |

Commit Message

Simon Glass Dec. 22, 2025, 11:56 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Add a minimal blk_types.h header with blk_opf_t type definition,
matching the Linux kernel header location.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 include/linux/blk_types.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 include/linux/blk_types.h
  

Patch

diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
new file mode 100644
index 00000000000..aa7ea50d233
--- /dev/null
+++ b/include/linux/blk_types.h
@@ -0,0 +1,18 @@ 
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Block I/O types
+ *
+ * Copyright 2025 Canonical Ltd
+ * Written by Simon Glass <simon.glass@canonical.com>
+ *
+ * Minimal version for U-Boot - based on Linux
+ */
+#ifndef _LINUX_BLK_TYPES_H
+#define _LINUX_BLK_TYPES_H
+
+#include <linux/types.h>
+
+/* Block I/O operation flags */
+typedef __u32 __bitwise blk_opf_t;
+
+#endif /* _LINUX_BLK_TYPES_H */