aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-04-06 23:31:53 +0200
committerTom Rini <trini@konsulko.com>2022-06-03 11:15:24 -0400
commit9320db0926ae4c2a24015298e3b374a07023267e (patch)
tree4a9f922be637fba6adc579308f54765439eeb31d
parentad9f3771f61228a16a1ada09e4daaceb022a6e1b (diff)
downloadu-boot-9320db0926ae4c2a24015298e3b374a07023267e.zip
u-boot-9320db0926ae4c2a24015298e3b374a07023267e.tar.gz
u-boot-9320db0926ae4c2a24015298e3b374a07023267e.tar.bz2
squashfs: Fix compilation on big endian systems
Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
-rw-r--r--fs/squashfs/sqfs.c3
-rw-r--r--fs/squashfs/sqfs_dir.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c
index b4484fa..547d2fd 100644
--- a/fs/squashfs/sqfs.c
+++ b/fs/squashfs/sqfs.c
@@ -12,8 +12,7 @@
#include <errno.h>
#include <fs.h>
#include <linux/types.h>
-#include <linux/byteorder/little_endian.h>
-#include <linux/byteorder/generic.h>
+#include <asm/byteorder.h>
#include <memalign.h>
#include <stdlib.h>
#include <string.h>
diff --git a/fs/squashfs/sqfs_dir.c b/fs/squashfs/sqfs_dir.c
index a265b98..ed83c90 100644
--- a/fs/squashfs/sqfs_dir.c
+++ b/fs/squashfs/sqfs_dir.c
@@ -7,8 +7,7 @@
#include <errno.h>
#include <linux/types.h>
-#include <linux/byteorder/little_endian.h>
-#include <linux/byteorder/generic.h>
+#include <asm/byteorder.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>