]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs/squashfs: Fix compilation error
authorPali Rohár <pali@kernel.org>
Wed, 3 Mar 2021 09:52:36 +0000 (10:52 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 4 Mar 2021 19:40:52 +0000 (14:40 -0500)
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>
fs/squashfs/sqfs_inode.c

index e76ec7cbdfd97d4b9c155a3666ad4d28273417c3..d25cfb53e75d9c5f7d69bc4fcdf67b3deee35f6e 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <asm/unaligned.h>
+#include <compiler.h>
 #include <errno.h>
 #include <stdint.h>
 #include <stdio.h>