diff options
author | Pali Rohár <pali@kernel.org> | 2022-04-29 16:36:23 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-05 15:06:02 -0400 |
commit | 317412cf80edcc8c5ae5ab48c2f5600058316ea3 (patch) | |
tree | 45c9bd952b955c5fe38e1359d3c17f5be8fbeaad | |
parent | dd26ed24f975f3bec99c953627658d4612524c41 (diff) | |
download | u-boot-WIP/2022-05-05-assorted-cleanups-and-fixes.zip u-boot-WIP/2022-05-05-assorted-cleanups-and-fixes.tar.gz u-boot-WIP/2022-05-05-assorted-cleanups-and-fixes.tar.bz2 |
misc: fs_loader: Fix compile warnings when CONFIG_CMD_UBIFS is enabledWIP/2022-05-05-assorted-cleanups-and-fixes
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>
-rw-r--r-- | drivers/misc/fs_loader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c index 0139bd6..5b4d036 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; /** |