drm: fix nouveau warning
authorDave Airlie <airlied@redhat.com>
Thu, 15 May 2008 01:13:03 +0000 (11:13 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 22 May 2008 23:40:26 +0000 (09:40 +1000)
shared-core/nouveau_state.c

index 0183b0b..d9c6efe 100644 (file)
@@ -615,7 +615,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=(unsigned long)dev->sg->virtual;
                else
                     {
                     DRM_ERROR("Requested PCIGART address, while no PCIGART was created\n");