ia64/xen-unstable

changeset 524:66de2841a3d3

bitkeeper revision 1.291 (3f098da7GHKu8C68q5phZ9RCpFlhhw)

Fix some warnings.
author sos22@labyrinth.cl.cam.ac.uk
date Mon Jul 07 15:11:35 2003 +0000 (2003-07-07)
parents 65cdeae1932c
children 155febe2fe2b
files xenolinux-2.4.21-sparse/fs/partitions/xeno.c
line diff
     1.1 --- a/xenolinux-2.4.21-sparse/fs/partitions/xeno.c	Mon Jul 07 15:11:22 2003 +0000
     1.2 +++ b/xenolinux-2.4.21-sparse/fs/partitions/xeno.c	Mon Jul 07 15:11:35 2003 +0000
     1.3 @@ -6,9 +6,13 @@
     1.4  #include <linux/slab.h>
     1.5  #include <linux/genhd.h>
     1.6  #include <asm/hypervisor-ifs/block.h>
     1.7 +#include <linux/pagemap.h>
     1.8  
     1.9 +#include "check.h"
    1.10  #include "xeno.h"
    1.11  
    1.12 +extern int xenolinux_control_msg(int operration, char *buffer, int size);
    1.13 +
    1.14  /* Grab the physdisk partitions list from the hypervisor. */
    1.15  int xeno_partition(struct gendisk *hd,
    1.16  		   struct block_device *bdev,
    1.17 @@ -27,7 +31,7 @@ int xeno_partition(struct gendisk *hd,
    1.18    buf->start_ind = 0;
    1.19    buf->n_aces = PHYSDISK_MAX_ACES_PER_REQUEST;
    1.20  
    1.21 -  xenolinux_control_msg(XEN_BLOCK_PHYSDEV_PROBE, buf,
    1.22 +  xenolinux_control_msg(XEN_BLOCK_PHYSDEV_PROBE, (char *)buf,
    1.23  			sizeof(*buf));
    1.24    if (buf->n_aces == 0) {
    1.25      kfree(buf);