[PATCH 3/7] fs/squashfs: squashfs.h: include file should be self dependent

Richard Genoud richard.genoud at bootlin.com
Fri Mar 13 11:42:25 CET 2026


Otherwise, we get a lot of errors when including this file.

Signed-off-by: Richard Genoud <richard.genoud at bootlin.com>
---
 include/squashfs.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/squashfs.h b/include/squashfs.h
index 7489eefa1f2f..83ed8a494428 100644
--- a/include/squashfs.h
+++ b/include/squashfs.h
@@ -10,7 +10,10 @@
 #ifndef _SQFS_H_
 #define _SQFS_H_
 
-struct disk_partition;
+#include <fs.h>
+#include <blk.h>
+#include <part.h>
+#include <linux/types.h>
 
 int sqfs_opendir(const char *filename, struct fs_dir_stream **dirsp);
 int sqfs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp);


More information about the U-Boot mailing list