[PATCH] ubiformat: Include missing header
Ezequiel Garcia
ezequiel.garcia at free-electrons.com
Sat Aug 23 12:23:48 PDT 2014
Currently this warning is found when compiling ubiformat.c
CC commands/ubiformat.o
commands/ubiformat.c: In function 'flash_image':
commands/ubiformat.c:368:3: warning: implicit declaration of function 'read_full' [-Wimplicit-function-declaration]
err = read_full(fd, buf, mtd->eb_size);
^
because ubiformat.c needs libfile.h for the read_full() function.
This commit adds the missing header.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
---
commands/ubiformat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/commands/ubiformat.c b/commands/ubiformat.c
index 443d645..df0b801 100644
--- a/commands/ubiformat.c
+++ b/commands/ubiformat.c
@@ -40,6 +40,7 @@
#include <malloc.h>
#include <ioctl.h>
#include <libbb.h>
+#include <libfile.h>
#include <linux/mtd/mtd.h>
#include <linux/kernel.h>
#include <linux/stat.h>
--
2.0.1
More information about the barebox
mailing list