mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 03:58:05 +02:00
Use DO_MUNMAP_4_ARGS macro defined in Makefile.linux (Steve Holland).
Silence a warning about a format-argument mismatch in printk.
This commit is contained in:
parent
3dea36d843
commit
ce21dca4aa
2 changed files with 4 additions and 4 deletions
|
|
@ -80,7 +80,7 @@ int savage_alloc_continuous_mem(struct inode *inode, struct file *filp,
|
|||
return -EINVAL;
|
||||
|
||||
size = cont_mem.type * cont_mem.size;
|
||||
printk("[drm]JTLIsize = %d\n",size);
|
||||
printk("[drm]JTLIsize = %lu\n",size);
|
||||
|
||||
ret = (void *)__get_free_pages(GFP_KERNEL, get_order(size));
|
||||
if (ret == NULL)
|
||||
|
|
@ -218,7 +218,7 @@ int savage_free_cont_mem(struct inode *inode, struct file *filp,
|
|||
DRM(free)(list, sizeof(*list), DRM_MEM_MAPS);
|
||||
|
||||
/*unmap the user space */
|
||||
#if 0 && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,18))
|
||||
#ifdef DO_MUNMAP_4_ARGS
|
||||
if ( do_munmap(current->mm,cont_mem.linear,size,1)!=0)
|
||||
#else
|
||||
if ( do_munmap(current->mm,cont_mem.linear,size)!=0)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ int savage_alloc_continuous_mem(struct inode *inode, struct file *filp,
|
|||
return -EINVAL;
|
||||
|
||||
size = cont_mem.type * cont_mem.size;
|
||||
printk("[drm]JTLIsize = %d\n",size);
|
||||
printk("[drm]JTLIsize = %lu\n",size);
|
||||
|
||||
ret = (void *)__get_free_pages(GFP_KERNEL, get_order(size));
|
||||
if (ret == NULL)
|
||||
|
|
@ -218,7 +218,7 @@ int savage_free_cont_mem(struct inode *inode, struct file *filp,
|
|||
DRM(free)(list, sizeof(*list), DRM_MEM_MAPS);
|
||||
|
||||
/*unmap the user space */
|
||||
#if 0 && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,18))
|
||||
#ifdef DO_MUNMAP_4_ARGS
|
||||
if ( do_munmap(current->mm,cont_mem.linear,size,1)!=0)
|
||||
#else
|
||||
if ( do_munmap(current->mm,cont_mem.linear,size)!=0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue