summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-04-29 16:36:23 +0200
committerTom Rini <trini@konsulko.com>2022-05-05 19:37:11 -0400
commitaa5ea20c71921e062aa91d5c7f924cef5d742ec2 (patch)
tree3ea6ba397b9ce3db7286537be078944c6daa23b8 /drivers/misc
parent0be4b0b6516c82f53bb3e8546ea8f213cf2fe2ac (diff)
downloadu-boot-aa5ea20c71921e062aa91d5c7f924cef5d742ec2.tar.gz
misc: fs_loader: Fix compile warnings when CONFIG_CMD_UBIFS is enabled
drivers/misc/fs_loader.c: In function ‘mount_ubifs’: drivers/misc/fs_loader.c:46:12: warning: implicit declaration of function ‘ubi_part’ [-Wimplicit-function-declaration] int ret = ubi_part(mtdpart, NULL); ^~~~~~~~ drivers/misc/fs_loader.c:53:9: warning: implicit declaration of function ‘cmd_ubifs_mount’ [-Wimplicit-function-declaration] return cmd_ubifs_mount(ubivol); ^~~~~~~~~~~~~~~ drivers/misc/fs_loader.c: In function ‘umount_ubifs’: drivers/misc/fs_loader.c:58:9: warning: implicit declaration of function ‘cmd_ubifs_umount’ [-Wimplicit-function-declaration] return cmd_ubifs_umount(); ^~~~~~~~~~~~~~~~ Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/fs_loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c
index 0139bd66ba..5b4d03639c 100644
--- a/drivers/misc/fs_loader.c
+++ b/drivers/misc/fs_loader.c
@@ -20,6 +20,10 @@
#include <malloc.h>
#include <spl.h>
+#ifdef CONFIG_CMD_UBIFS
+#include <ubi_uboot.h>
+#endif
+
DECLARE_GLOBAL_DATA_PTR;
/**