summaryrefslogtreecommitdiff
path: root/shared-core/nouveau_state.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-05-02 10:34:46 -0700
committerKeith Packard <keithp@keithp.com>2008-05-02 10:34:46 -0700
commit5b5b68ffd220f43d4da35ac475b8a3dd91ebbfa7 (patch)
treefb914f45e65c21530b79428eca6525edb3399f01 /shared-core/nouveau_state.c
parent0d547c9ed92c0183f2c727496154baa2849f326e (diff)
Fix nouveau warning when returning pointers in uint64_t objects.
Diffstat (limited to 'shared-core/nouveau_state.c')
-rw-r--r--shared-core/nouveau_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c
index 555955d4..9e79d3bc 100644
--- a/shared-core/nouveau_state.c
+++ b/shared-core/nouveau_state.c
@@ -614,7 +614,7 @@ int nouveau_ioctl_getparam(struct drm_device *dev, void *data, struct drm_file *
break;
case NOUVEAU_GETPARAM_PCI_PHYSICAL:
if ( dev -> sg )
- getparam->value=(uint64_t) dev->sg->virtual;
+ getparam->value=(uint64_t) (uintptr_t) dev->sg->virtual;
else
{
DRM_ERROR("Requested PCIGART address, while no PCIGART was created\n");