X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Framdisk.c;h=05e9bda5df07e66f03208aa1c02c3c58666f5e09;hb=693d2dbe9d861e7b9144282eb0d24cc98ab9a35e;hp=5695bc48f03e58bf5d22d7663f8d49a004b8ef70;hpb=72420d58d18ec71d4777d029daaf0c6a1c820b32;p=palacios-OLD.git diff --git a/palacios/src/devices/ramdisk.c b/palacios/src/devices/ramdisk.c index 5695bc4..05e9bda 100644 --- a/palacios/src/devices/ramdisk.c +++ b/palacios/src/devices/ramdisk.c @@ -21,7 +21,7 @@ #include -#ifndef CONFIG_DEBUG_RAMDISK +#ifndef V3_CONFIG_DEBUG_RAMDISK #undef PrintDebug #define PrintDebug(fmt, args...) #endif @@ -72,12 +72,14 @@ static struct v3_dev_blk_ops blk_ops = { -static int disk_free(struct vm_device * dev) { +static int disk_free(struct disk_state * state) { + + V3_Free(state); return 0; } static struct v3_device_ops dev_ops = { - .free = disk_free, + .free = (int (*)(void *))disk_free, };