ceph: Use %zu to format size_t in ceph_fill_inline_data()
PATCH 1/1 ceph: Use %zu to format size_t in ceph_fill_inline_data()
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’
--- fs/ceph/addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/addr.c +1 -1
@@ -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 ) {
Signature · 1 line
1.9.1
Quoted 15 lines · Geert Uytterhoeven
On 32-bit, where
size_tis 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 <[email protected]>--- fs/ceph/addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ceph/addr.c +0
-0
fs/ceph/addr.c void ceph_fill_inline_data(struct inode *inode, struct page *locked_page, · line 1420
Quoted 6 lines
fs/ceph/addr.c +1
-1@@ -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
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html