Changeset 22 for lm-sensors/trunk/kernel/compat.h
- Timestamp:
- 12/02/98 18:25:53 (14 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/compat.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/compat.h
r19 r22 38 38 #endif /* def MODULE */ 39 39 40 /* copy_from/to_usr is called memcpy_from/to_fs in 2.0 kernels; perhaps in 41 some early 2.1 kernels too? */ 40 /* copy_from/to_usr is called memcpy_from/to_fs in 2.0 kernels 41 get_user was redefined in 2.1 kernels to use two arguments, and returns 42 an error code */ 42 43 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,4)) 43 44 #define copy_from_user memcpy_fromfs 44 45 #define copy_to_user memcpy_tofs 45 #endif46 47 /* get_user was redefined in 2.1 kernels to use two arguments, and returns48 an error code */49 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,4))50 46 #define get_user_data(to,from) ((to) = get_user(from),0) 51 47 #else 48 #include <asm/uaccess.h> 52 49 #define get_user_data(to,from) get_user(to,from) 53 50 #endif
