bpkfs: remove twice include of fs.h
PATCH 1/2 bpkfs: remove twice include of fs.h
Signed-off-by Alexander Aring <[email protected]>
--- fs/bpkfs.c | 1 - 1 file changed, 1 deletion(-)
fs/bpkfs.c +0 -1
@@ -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
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);
Signed-off-by Alexander Aring <[email protected]>
--- fs/bpkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/bpkfs.c +1 -1
@@ -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
Sascha Hauer
AppliedQuoted 1 line · Alexander Aring
Signed-off-by Alexander Aring <[email protected]>
Applied, thanks
Sascha
Quoted 25 lines
--- fs/bpkfs.c | 1 - 1 file changed, 1 deletion(-)fs/bpkfs.c +0
-1@@ -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