summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h6
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