Jan Beulich
2009-May-28 13:04 UTC
[Xen-devel] [PATCH] linux/blktap2: fix compiler warnings
Signed-off-by: Jan Beulich <jbeulich@novell.com> --- a/drivers/xen/blktap2/device.c +++ b/drivers/xen/blktap2/device.c @@ -162,7 +162,7 @@ blktap_map_uaddr_fn(pte_t *ptep, struct { pte_t *pte = (pte_t *)data; - BTDBG("ptep %p -> %012llx\n", ptep, pte_val(*pte)); + BTDBG("ptep %p -> %012llx\n", ptep, (unsigned long long)pte_val(*pte)); set_pte(ptep, *pte); xen_invlpg(addr); return 0; --- a/drivers/xen/blktap2/sysfs.c +++ b/drivers/xen/blktap2/sysfs.c @@ -188,7 +188,7 @@ blktap_sysfs_resume_device(struct class_ out: blktap_sysfs_exit(tap); - BTDBG("returning %d\n", (err ? err : size)); + BTDBG("returning %zd\n", (err ? err : size)); return (err ? err : size); } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2009-May-28 13:10 UTC
Re: [Xen-devel] [PATCH] linux/blktap2: fix compiler warnings
>>> "Jan Beulich" <JBeulich@novell.com> 28.05.09 15:04 >>> >Signed-off-by: Jan Beulich <jbeulich@novell.com> > >--- a/drivers/xen/blktap2/device.c >+++ b/drivers/xen/blktap2/device.c >...Here''s a version that applies without fuzz to c/s 886. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- sle10sp3-2009-05-28.orig/drivers/xen/blktap2/device.c 2009-05-28 13:25:57.000000000 +0200 +++ sle10sp3-2009-05-28/drivers/xen/blktap2/device.c 2009-05-28 14:51:38.000000000 +0200 @@ -162,7 +162,7 @@ blktap_map_uaddr_fn(pte_t *ptep, struct { pte_t *pte = (pte_t *)data; - BTDBG("ptep %p -> %012llx\n", ptep, pte_val(*pte)); + BTDBG("ptep %p -> %012llx\n", ptep, (unsigned long long)pte_val(*pte)); set_pte(ptep, *pte); return 0; } --- sle10sp3-2009-05-28.orig/drivers/xen/blktap2/sysfs.c 2009-05-28 10:15:07.000000000 +0200 +++ sle10sp3-2009-05-28/drivers/xen/blktap2/sysfs.c 2009-05-28 14:52:05.000000000 +0200 @@ -188,7 +188,7 @@ blktap_sysfs_resume_device(struct class_ out: blktap_sysfs_exit(tap); - BTDBG("returning %d\n", (err ? err : size)); + BTDBG("returning %zd\n", (err ? err : size)); return (err ? err : size); } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel