From 94071289a4c61a1083a3d6b3546b06cafeaeac44 Mon Sep 17 00:00:00 2001 From: David Dawes Date: Wed, 8 Nov 2000 00:07:17 +0000 Subject: merge with 4.0.1d --- linux-core/drmP.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 6be90c51..46e08e05 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -59,6 +59,15 @@ #include #include #include + +#ifndef copy_to_user_ret +#define copy_to_user_ret(to,from,n,retval) ({ if (copy_to_user(to,from,n)) return retval; }) +#endif + +#ifndef copy_from_user_ret +#define copy_from_user_ret(to,from,n,retval) ({ if (copy_from_user(to,from,n)) return retval; }) +#endif + #ifdef CONFIG_MTRR #include #endif -- cgit v1.2.3