* [PATCH] ceph: Use %zu to format size_t in ceph_fill_inline_data()
@ 2014-12-21 10:56 Geert Uytterhoeven
2014-12-21 11:10 ` Ilya Dryomov
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2014-12-21 10:56 UTC (permalink / raw)
To: Sage Weil; +Cc: ceph-devel, linux-kernel, Geert Uytterhoeven
On 32-bit, where size_t is unsigned int:
fs/ceph/addr.c: In function ‘ceph_fill_inline_data’:
fs/ceph/addr.c:1419: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 10 has type ‘size_t’
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
fs/ceph/addr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index f5013d92a7e6b73d..c81c0e004588b9e2 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -1416,7 +1416,7 @@ void ceph_fill_inline_data(struct inode *inode, struct page *locked_page,
}
}
- dout("fill_inline_data %p %llx.%llx len %lu locked_page %p\n",
+ dout("fill_inline_data %p %llx.%llx len %zu locked_page %p\n",
inode, ceph_vinop(inode), len, locked_page);
if (len > 0) {
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ceph: Use %zu to format size_t in ceph_fill_inline_data()
2014-12-21 10:56 [PATCH] ceph: Use %zu to format size_t in ceph_fill_inline_data() Geert Uytterhoeven
@ 2014-12-21 11:10 ` Ilya Dryomov
0 siblings, 0 replies; 2+ messages in thread
From: Ilya Dryomov @ 2014-12-21 11:10 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Sage Weil, Ceph Development, Linux Kernel Mailing List
On Sun, Dec 21, 2014 at 1:56 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On 32-bit, where size_t is unsigned int:
>
> fs/ceph/addr.c: In function ‘ceph_fill_inline_data’:
> fs/ceph/addr.c:1419: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 10 has type ‘size_t’
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
> fs/ceph/addr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
> index f5013d92a7e6b73d..c81c0e004588b9e2 100644
> --- a/fs/ceph/addr.c
> +++ b/fs/ceph/addr.c
> @@ -1416,7 +1416,7 @@ void ceph_fill_inline_data(struct inode *inode, struct page *locked_page,
> }
> }
>
> - dout("fill_inline_data %p %llx.%llx len %lu locked_page %p\n",
> + dout("fill_inline_data %p %llx.%llx len %zu locked_page %p\n",
> inode, ceph_vinop(inode), len, locked_page);
Sorry, it's been reported by kbuild robot a couple days ago and is
already fixed along with another warning.
Thanks,
Ilya
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-21 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-21 10:56 [PATCH] ceph: Use %zu to format size_t in ceph_fill_inline_data() Geert Uytterhoeven
2014-12-21 11:10 ` Ilya Dryomov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®