From 91640ede1f8cdb066b2e562be628480ae6c83be6 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 25 Aug 2011 15:22:37 +0200 Subject: Fix initialization from incompatible pointer type * linux/dev/glue/block.c (device_get_status): Cast `hg' to `unsigned long' in ioctl call. --- linux/dev/glue/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c index cec9687..f28644e 100644 --- a/linux/dev/glue/block.c +++ b/linux/dev/glue/block.c @@ -1668,7 +1668,7 @@ device_get_status (void *d, dev_flavor_t flavor, dev_status_t status, INIT_DATA(); if ((*bd->ds->fops->ioctl) (&td.inode, &td.file, - HDIO_GETGEO, &hg)) + HDIO_GETGEO, (unsigned long)&hg)) return D_INVALID_OPERATION; dp->dp_type = DPT_WINI; /* XXX: It may be a floppy... */ -- cgit v1.2.3