mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] bpkfs: remove twice include of fs.h
@ 2014-02-09  9:35 Alexander Aring
  2014-02-09  9:35 ` [PATCH 2/2] bpkfs: fix compiler warning Alexander Aring
  2014-02-10  8:34 ` [PATCH 1/2] bpkfs: remove twice include of fs.h Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Aring @ 2014-02-09  9:35 UTC (permalink / raw)
  To: barebox

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 fs/bpkfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/bpkfs.c b/fs/bpkfs.c
index b3b45be..ae7681a 100644
--- a/fs/bpkfs.c
+++ b/fs/bpkfs.c
@@ -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>
-- 
1.8.5.4


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] bpkfs: fix compiler warning
  2014-02-09  9:35 [PATCH 1/2] bpkfs: remove twice include of fs.h Alexander Aring
@ 2014-02-09  9:35 ` Alexander Aring
  2014-02-10  8:34 ` [PATCH 1/2] bpkfs: remove twice include of fs.h Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Aring @ 2014-02-09  9:35 UTC (permalink / raw)
  To: barebox

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 <alex.aring@gmail.com>
---
 fs/bpkfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/bpkfs.c b/fs/bpkfs.c
index ae7681a..8352307 100644
--- a/fs/bpkfs.c
+++ b/fs/bpkfs.c
@@ -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);
 
-- 
1.8.5.4


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] bpkfs: remove twice include of fs.h
  2014-02-09  9:35 [PATCH 1/2] bpkfs: remove twice include of fs.h Alexander Aring
  2014-02-09  9:35 ` [PATCH 2/2] bpkfs: fix compiler warning Alexander Aring
@ 2014-02-10  8:34 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-02-10  8:34 UTC (permalink / raw)
  To: Alexander Aring; +Cc: barebox

On Sun, Feb 09, 2014 at 10:35:57AM +0100, Alexander Aring wrote:
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>

Applied, thanks

Sascha

> ---
>  fs/bpkfs.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/bpkfs.c b/fs/bpkfs.c
> index b3b45be..ae7681a 100644
> --- a/fs/bpkfs.c
> +++ b/fs/bpkfs.c
> @@ -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>
> -- 
> 1.8.5.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-10  8:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-09  9:35 [PATCH 1/2] bpkfs: remove twice include of fs.h Alexander Aring
2014-02-09  9:35 ` [PATCH 2/2] bpkfs: fix compiler warning Alexander Aring
2014-02-10  8:34 ` [PATCH 1/2] bpkfs: remove twice include of fs.h Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox