aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-03-03 10:52:36 +0100
committerTom Rini <trini@konsulko.com>2021-03-04 14:40:52 -0500
commit612a201d38b5a443665648057941d8c91c069816 (patch)
tree8cf577c760d1df445c3064ce9fe9f4be76d5b603
parent2b82b1d26ae44ac2f43d8a87f482fe906ba863fb (diff)
downloadu-boot-612a201d38b5a443665648057941d8c91c069816.zip
u-boot-612a201d38b5a443665648057941d8c91c069816.tar.gz
u-boot-612a201d38b5a443665648057941d8c91c069816.tar.bz2
fs/squashfs: Fix compilation error
Commit 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 ("common: Drop asm/global_data.h from common header") broke compilation of squashfs filesystem when CONFIG_CMD_SQUASHFS=y is enabled. Compilation is failing on error: aarch64-linux-gnu-ld.bfd: u-boot/fs/squashfs/sqfs_inode.c:121: undefined reference to `le32_to_cpu' Fixes: 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 ("common: Drop asm/global_data.h from common header") Suggested-by: Tom Rini <trini@konsulko.com> Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--fs/squashfs/sqfs_inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/squashfs/sqfs_inode.c b/fs/squashfs/sqfs_inode.c
index e76ec7c..d25cfb5 100644
--- a/fs/squashfs/sqfs_inode.c
+++ b/fs/squashfs/sqfs_inode.c
@@ -6,6 +6,7 @@
*/
#include <asm/unaligned.h>
+#include <compiler.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>