From: Frank Zago Date: Fri, 15 Aug 2014 19:06:34 +0000 (-0500) Subject: LU-5396: define __user for userspace X-Git-Tag: 2.6.52~22 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=5909199f4a32a0a80b053c0a2782d3b4b6ccd5c3 LU-5396: define __user for userspace Structures used by ioctl are shared with the kernel. Some of these structures will have the __user annotation for sparse, and thus __user needs to be defined in user space Change-Id: I2a4087a2faea0849cc816515c4aa9871699acf55 Signed-off-by: frank zago Reviewed-on: http://review.whamcloud.com/11480 Tested-by: Jenkins Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- diff --git a/libcfs/include/libcfs/types.h b/libcfs/include/libcfs/types.h index 059caca..b4fd790 100644 --- a/libcfs/include/libcfs/types.h +++ b/libcfs/include/libcfs/types.h @@ -79,4 +79,9 @@ typedef unsigned long ulong_ptr_t; typedef long long_ptr_t; +#ifndef __KERNEL__ +/* Sparse annotation. */ +#define __user +#endif + #endif /* _LIBCFS_TYPES_H */