aboutsummaryrefslogtreecommitdiff
path: root/fs/squashfs
diff options
context:
space:
mode:
authorPali Rohár2022-04-06 23:31:53 +0200
committerTom Rini2022-06-03 11:15:24 -0400
commit9320db0926ae4c2a24015298e3b374a07023267e (patch)
tree4a9f922be637fba6adc579308f54765439eeb31d /fs/squashfs
parentad9f3771f61228a16a1ada09e4daaceb022a6e1b (diff)
squashfs: Fix compilation on big endian systems
Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'fs/squashfs')
-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 b4484fa17f5..547d2fd4b30 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 a265b98fe68..ed83c90682f 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>