[PATCH] ubiformat: Include missing header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux