diff options
author | Dave Airlie <airlied@linux.ie> | 2006-04-23 09:05:05 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-04-23 09:05:05 +0000 |
commit | d365f031292d0f50755a3049c410443b1075fff5 (patch) | |
tree | 80027dd2f45e1a6a24e48edbf4cf98eaafffa39e /linux-core/drm_compat.h | |
parent | 30a5787d3671fba89d14efb638695c2dd61adf03 (diff) |
fixup GFP_COMP for older kernels and get_page/put_page for newer
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r-- | linux-core/drm_compat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h index 46d6c0e6..03749d14 100644 --- a/linux-core/drm_compat.h +++ b/linux-core/drm_compat.h @@ -169,10 +169,14 @@ static inline void radeon_delete_i2c_busses(struct drm_device *dev) #define __user #endif -#ifndef __put_page +#if !defined(__put_page) #define __put_page(p) atomic_dec(&(p)->count) #endif +#if !defined(__GFP_COMP) +#define __GFP_COMP 0 +#endif + #ifndef REMAP_PAGE_RANGE_5_ARGS #define DRM_RPR_ARG(vma) #else |