diff options
author | David Dawes <dawes@xfree86.org> | 2000-11-08 00:07:17 +0000 |
---|---|---|
committer | David Dawes <dawes@xfree86.org> | 2000-11-08 00:07:17 +0000 |
commit | 94071289a4c61a1083a3d6b3546b06cafeaeac44 (patch) | |
tree | ac34ab78e6e4b842fa14d61d944f26ab1376aa2d /linux-core | |
parent | 5745cb7fa70cf312d371aac44de3beae2a8d6e47 (diff) |
merge with 4.0.1dX_4_0_1e-20001107-mergeX_4_0_1d-20001107-merge
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drmP.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <asm/io.h> #include <asm/mman.h> #include <asm/uaccess.h> + +#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 <asm/mtrr.h> #endif |