Fix nouveau warning when returning pointers in uint64_t objects.

This commit is contained in:
Keith Packard 2008-05-02 10:34:46 -07:00
parent 0d547c9ed9
commit 5b5b68ffd2

View file

@ -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");