[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/17] Fix initialization from incompatible pointer type
From: |
Guillem Jover |
Subject: |
[PATCH 14/17] Fix initialization from incompatible pointer type |
Date: |
Thu, 25 Aug 2011 15:22:37 +0200 |
* linux/dev/glue/block.c (device_get_status): Cast `hg' to `unsigned long'
in ioctl call.
---
linux/dev/glue/block.c | 2 +-
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... */
--
1.7.5.4
- Re: [PATCH 05/17] Do not take obsolete and unused bcopy and bzero from libc, (continued)
[PATCH 14/17] Fix initialization from incompatible pointer type,
Guillem Jover <=
[PATCH 07/17] Add prototype for log function, Guillem Jover, 2011/08/25
[PATCH 17/17] Initialize the new map entry when it's a projected buffer, Guillem Jover, 2011/08/25
[PATCH 12/17] Disable unused variables, Guillem Jover, 2011/08/25
[PATCH 15/17] Move cdrom_sleep() definition where it belongs, Guillem Jover, 2011/08/25