Skip to contentSkip to conversation

bpkfs: remove twice include of fs.h

PATCH Applied Alexander Aring 2 participants 3 messages Feb 9, 2014 – Feb 10, 2014 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bpkfs: remove twice include of fs.h

---
 fs/bpkfs.c | 1 -
 1 file changed, 1 deletion(-)
fs/bpkfs.c +0 -1
index b3b45be..ae7681a 100644
@@ -12,7 +12,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <malloc.h>
 #include <init.h>
 #include <linux/stat.h>
Signature · 7 lines
1.8.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 2/2 bpkfs: fix compiler warning

Correct formatstring of size_t is %zu otherwise we get:

fs/bpkfs.c: In function ‘bpkfs_probe’:
fs/bpkfs.c:440:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=]
dev_dbg(dev, "%d: offset = %d\n", i, d->offset);

---
 fs/bpkfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/bpkfs.c +1 -1
index ae7681a..8352307 100644
@@ -437,7 +437,7 @@ static int bpkfs_probe(struct device_d *dev)
 
 		dev_dbg(dev, "%d: type = 0x%x => %s\n", i, d->type, d->name);
 		dev_dbg(dev, "%d: size = %llu\n", i, d->size);
-		dev_dbg(dev, "%d: offset = %d\n", i, d->offset);
+		dev_dbg(dev, "%d: offset = %zu\n", i, d->offset);
 
 		dev_dbg(dev, "%d: hw_id = 0x%x => %s\n", i, h->hw_id, h->name);
 
Signature · 7 lines
1.8.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#2 lore raw
In reply to Alexander Aring
Quoted 1 line · Alexander Aring

Applied, thanks

Sascha

Quoted 25 lines
---
 fs/bpkfs.c | 1 -
 1 file changed, 1 deletion(-)
fs/bpkfs.c +0 -1
index b3b45be..ae7681a 100644
@@ -12,7 +12,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <malloc.h>
 #include <init.h>
 #include <linux/stat.h>
Signature · 7 lines
1.8.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox