From c2f15d619beaec812ccf077dbecd2d67a7cb2f57 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Wed, 23 Jul 2014 15:53:07 -0500 Subject: [PATCH] LU-5396: add spare annotation __user wherever needed This fixes sparse warnings such as: .../api-ni.c:1639:33: warning: incorrect type in argument 3 (different address spaces) .../api-ni.c:1639:33: expected struct lnet_process_id_t [noderef] [usertype] *ids .../api-ni.c:1639:33: got struct lnet_process_id_t [usertype] * There is no code change. Signed-off-by: frank zago Change-Id: I683ce17935ce0cc76ce4b450bc3750b7bca4d9a8 Reviewed-on: http://review.whamcloud.com/11202 Tested-by: Jenkins Reviewed-by: Dmitry Eremin Tested-by: Maloo Reviewed-by: Patrick Farrell Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lnet/selftest/console.c | 4 ++-- lnet/selftest/console.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lnet/selftest/console.c b/lnet/selftest/console.c index 34cf28f..8179f10 100644 --- a/lnet/selftest/console.c +++ b/lnet/selftest/console.c @@ -732,7 +732,7 @@ lstcon_group_refresh(char *name, struct list_head *result_up) } int -lstcon_group_list(int index, int len, char *name_up) +lstcon_group_list(int index, int len, char __user *name_up) { lstcon_group_t *grp; @@ -919,7 +919,7 @@ lstcon_batch_add(char *name) } int -lstcon_batch_list(int index, int len, char *name_up) +lstcon_batch_list(int index, int len, char __user *name_up) { lstcon_batch_t *bat; diff --git a/lnet/selftest/console.h b/lnet/selftest/console.h index 0505168..571e1d8 100644 --- a/lnet/selftest/console.h +++ b/lnet/selftest/console.h @@ -222,7 +222,7 @@ extern int lstcon_nodes_remove(char *name, int nnd, lnet_process_id_t *nds_up, struct list_head *result_up); extern int lstcon_group_info(char *name, lstcon_ndlist_ent_t *gent_up, int *index_p, int *ndent_p, lstcon_node_ent_t *ndents_up); -extern int lstcon_group_list(int idx, int len, char *name_up); +extern int lstcon_group_list(int idx, int len, char __user *name_up); extern int lstcon_batch_add(char *name); extern int lstcon_batch_run(char *name, int timeout, struct list_head *result_up); @@ -232,7 +232,7 @@ extern int lstcon_test_batch_query(char *name, int testidx, int client, int timeout, struct list_head *result_up); extern int lstcon_batch_del(char *name); -extern int lstcon_batch_list(int idx, int namelen, char *name_up); +extern int lstcon_batch_list(int idx, int namelen, char __user *name_up); extern int lstcon_batch_info(char *name, lstcon_test_batch_ent_t *ent_up, int server, int testidx, int *index_p, int *ndent_p, lstcon_node_ent_t *dents_up); -- 1.8.3.1