summaryrefslogtreecommitdiff
path: root/linux/dev
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-08-25 15:22:37 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-27 01:02:58 +0200
commit91640ede1f8cdb066b2e562be628480ae6c83be6 (patch)
treeb24587e101c2cc1d18f74192074cf4da49366dd4 /linux/dev
parentd4a093cc729c4079157c448a6cd36c7c9781e302 (diff)
Fix initialization from incompatible pointer type
* linux/dev/glue/block.c (device_get_status): Cast `hg' to `unsigned long' in ioctl call.
Diffstat (limited to 'linux/dev')
-rw-r--r--linux/dev/glue/block.c2
1 files changed, 1 insertions, 1 deletions
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... */