mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 11:38:13 +02:00
more 2.4 compat fns
This commit is contained in:
parent
1bc7576474
commit
3e0f3c1fbb
2 changed files with 20 additions and 0 deletions
|
|
@ -235,6 +235,16 @@ static inline struct page * vmalloc_to_page(void * vmalloc_addr)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
|
||||
static inline unsigned iminor(struct inode *inode)
|
||||
{
|
||||
return MINOR(inode->i_rdev);
|
||||
}
|
||||
|
||||
#define old_encode_dev(x) (x)
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef REMAP_PAGE_RANGE_5_ARGS
|
||||
#define DRM_RPR_ARG(vma)
|
||||
#else
|
||||
|
|
|
|||
10
linux/drmP.h
10
linux/drmP.h
|
|
@ -235,6 +235,16 @@ static inline struct page * vmalloc_to_page(void * vmalloc_addr)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
|
||||
static inline unsigned iminor(struct inode *inode)
|
||||
{
|
||||
return MINOR(inode->i_rdev);
|
||||
}
|
||||
|
||||
#define old_encode_dev(x) (x)
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef REMAP_PAGE_RANGE_5_ARGS
|
||||
#define DRM_RPR_ARG(vma)
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue