From 5909199f4a32a0a80b053c0a2782d3b4b6ccd5c3 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Fri, 15 Aug 2014 14:06:34 -0500 Subject: [PATCH] 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 --- libcfs/include/libcfs/types.h | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 1.8.3.1