[Concept,13/34] ext4l: Remove redundant forward declarations

Message ID 20260114225635.3407989-14-sjg@u-boot.org
State New
Headers
Series ext4l: Clean up ext4_uboot.h by moving definitions to standard headers |

Commit Message

Simon Glass Jan. 14, 2026, 10:56 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Remove the forward declarations for struct inode and struct address_space
since linux/fs.h is already included earlier and provides these
declarations.

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

 fs/ext4l/ext4_uboot.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
  

Patch

diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h
index 166768985b1..e09f5c31ebe 100644
--- a/fs/ext4l/ext4_uboot.h
+++ b/fs/ext4l/ext4_uboot.h
@@ -166,9 +166,7 @@  struct lock_class_key { int dummy; };
 /* File flags */
 #define O_SYNC		0
 
-/* Forward declarations for iomap_ops */
-struct inode;
-struct address_space;
+/* Forward declarations (struct inode, struct address_space) are in linux/fs.h */
 
 /* Page types */
 typedef unsigned long pgoff_t;