Thread (2 messages) 2 messages, 2 authors, 2014-09-01

[PATCH] ubiformat: Include missing header

From: Ezequiel Garcia <hidden>
Date: 2014-08-23 19:25:24
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help