projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d547c9
)
Fix nouveau warning when returning pointers in uint64_t objects.
author
Keith Packard
<keithp@keithp.com>
Fri, 2 May 2008 17:34:46 +0000
(10:34 -0700)
committer
Keith Packard
<keithp@keithp.com>
Fri, 2 May 2008 17:34:46 +0000
(10:34 -0700)
shared-core/nouveau_state.c
patch
|
blob
|
history
diff --git
a/shared-core/nouveau_state.c
b/shared-core/nouveau_state.c
index
555955d
..
9e79d3b
100644
(file)
--- 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");