Whamcloud - gitweb
LU-5396 lnet/klnds: add sparse annotation __user wherever needed
[fs/lustre-release.git] / lustre / ldlm / ldlm_internal.h
index db32d47..d9b5d96 100644 (file)
@@ -267,7 +267,8 @@ typedef enum ldlm_policy_res ldlm_policy_res_t;
        struct __##var##__dummy_read {;} /* semicolon catcher */
 
 #define LDLM_POOL_PROC_WRITER(var, type)                               \
-       int lprocfs_wr_##var(struct file *file, const char *buffer,     \
+       int lprocfs_wr_##var(struct file *file,                         \
+                            const char __user *buffer,                 \
                             unsigned long count, void *data)           \
        {                                                               \
                struct ldlm_pool *pl = data;                            \