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-changelog

[Xen-changelog] [xen-unstable] Fix 64-bit build.

# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1171706340 0
# Node ID 31e65c4ba739cc8fcd14fb4198a76a63f1bd5049
# Parent  3c827d68fa87fbbe75e218cdaf4ec02f437009ce
Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/blktap/drivers/tapdisk.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r 3c827d68fa87 -r 31e65c4ba739 tools/blktap/drivers/tapdisk.c
--- a/tools/blktap/drivers/tapdisk.c    Fri Feb 16 20:31:27 2007 -0800
+++ b/tools/blktap/drivers/tapdisk.c    Sat Feb 17 09:59:00 2007 +0000
@@ -508,7 +508,7 @@ int send_responses(struct disk_driver *d
        int responses_queued = 0;
        struct td_state *s = dd->td_state;
        blkif_t *blkif = s->blkif;
-       int sidx = (int)private, secs_done = nr_secs;
+       int sidx = (int)(long)private, secs_done = nr_secs;
 
        if ( (idx > MAX_REQUESTS-1) )
        {
@@ -580,7 +580,7 @@ int do_cow_read(struct disk_driver *dd, 
        /* reissue request to backing file */
        ret = parent->drv->td_queue_read(parent, sector, nr_secs,
                                         page, send_responses, 
-                                        req->id, (void *)sidx);
+                                        req->id, (void *)(long)sidx);
        if (ret > 0)
                parent->early += ret;
 
@@ -668,7 +668,7 @@ static void get_io_request(struct td_sta
                                ret = drv->td_queue_write(dd, sector_nr,
                                                          nsects, page, 
                                                          send_responses,
-                                                         idx, (void *)i);
+                                                         idx, (void *)(long)i);
                                if (ret > 0) dd->early += ret;
                                else if (ret == -EBUSY) {
                                        /* put req back on queue */
@@ -682,7 +682,7 @@ static void get_io_request(struct td_sta
                                ret = drv->td_queue_read(dd, sector_nr,
                                                         nsects, page, 
                                                         send_responses,
-                                                        idx, (void *)i);
+                                                        idx, (void *)(long)i);
                                if (ret > 0) dd->early += ret;
                                else if (ret == -EBUSY) {
                                        /* put req back on queue */

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix 64-bit build., Xen patchbot-unstable <=