WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 08 of 12] blktap2: remove warnings

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 08 of 12] blktap2: remove warnings
From: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Date: Fri, 29 Jan 2010 00:59:39 -0000
Delivery-date: Thu, 28 Jan 2010 17:04:15 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1264726771@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1264726771@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.3.1
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1246269466 -3600
# Node ID 40d2f5a659a72a1d305a9501f5e6afbe78f62d83
# Parent  c5271142c79724bc366b91885737a4c0343c5a19
blktap2: remove warnings.

This patch removes the following warnings on ia64.

> linux-2.6.18-xen.hg/drivers/xen/blktap2/device.c: In function
  'blktap_device_finish_request':
> linux-2.6.18-xen.hg/drivers/xen/blktap2/device.c:403: warning:
  format '%lld' expects type 'long long int', but argument 7 has type 'uint64_t'
> linux-2.6.18-xen.hg/drivers/xen/blktap2/sysfs.c: In function
  'blktap_sysfs_debug_device':
> linux-2.6.18-xen.hg/drivers/xen/blktap2/sysfs.c:276: warning: format
  '%llu' expects type 'long long unsigned int', but argument 4 has type
  'uint64_t'

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r c5271142c797 -r 40d2f5a659a7 drivers/xen/blktap/device.c
--- a/drivers/xen/blktap/device.c       Thu Jun 04 10:46:54 2009 +0100
+++ b/drivers/xen/blktap/device.c       Mon Jun 29 10:57:46 2009 +0100
@@ -400,7 +400,8 @@
        ret = res->status == BLKIF_RSP_OKAY ? 0 : -EIO;
 
        BTDBG("req %p res status %d operation %d/%d id %lld\n", req,
-               res->status, res->operation, request->operation, res->id);
+             res->status, res->operation, request->operation,
+             (unsigned long long)res->id);
 
        switch (request->operation) {
        case BLKIF_OP_READ:
diff -r c5271142c797 -r 40d2f5a659a7 drivers/xen/blktap/sysfs.c
--- a/drivers/xen/blktap/sysfs.c        Thu Jun 04 10:46:54 2009 +0100
+++ b/drivers/xen/blktap/sysfs.c        Mon Jun 29 10:57:46 2009 +0100
@@ -276,7 +276,7 @@
                tmp += sprintf(tmp, "req %d: id: %llu, usr_idx: %d, "
                               "status: 0x%02x, pendcnt: %d, "
                               "nr_pages: %u, op: %d, time: %lu:%lu\n",
-                              i, req->id, req->usr_idx,
+                              i, (unsigned long long)req->id, req->usr_idx,
                               req->status, atomic_read(&req->pendcnt),
                               req->nr_pages, req->operation, req->time.tv_sec,
                               req->time.tv_usec);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel