xgi: Fix 64-bit kernel / 32-bit user issue.
authorIan Romanick <idr@us.ibm.com>
Mon, 12 May 2008 22:58:55 +0000 (15:58 -0700)
committerIan Romanick <idr@us.ibm.com>
Tue, 10 Jun 2008 18:29:15 +0000 (11:29 -0700)
linux-core/xgi_drv.h
linux-core/xgi_fb.c

index 9408073..0d85e55 100644 (file)
@@ -86,7 +86,7 @@ extern int xgi_fb_heap_init(struct xgi_info * info);
 extern int xgi_alloc(struct xgi_info * info, struct xgi_mem_alloc * alloc,
        struct drm_file * filp);
 
-extern int xgi_free(struct xgi_info * info, unsigned long index,
+extern int xgi_free(struct xgi_info * info, unsigned int index,
        struct drm_file * filp);
 
 extern int xgi_pcie_heap_init(struct xgi_info * info);
index 3f50fe8..e793bd3 100644 (file)
@@ -93,7 +93,7 @@ int xgi_alloc_ioctl(struct drm_device * dev, void * data,
 }
 
 
-int xgi_free(struct xgi_info * info, unsigned long index,
+int xgi_free(struct xgi_info * info, unsigned int index,
             struct drm_file * filp)
 {
        int err;
@@ -111,7 +111,7 @@ int xgi_free_ioctl(struct drm_device * dev, void * data,
 {
        struct xgi_info *info = dev->dev_private;
 
-       return xgi_free(info, *(unsigned long *) data, filp);
+       return xgi_free(info, *(unsigned int *) data, filp);
 }