[PATCH] misc __user misannotations (pointless casts to long)

From: Al Viro
Date: Fri Mar 28 2008 - 23:09:27 EST



Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
drivers/lguest/lguest_user.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c
index 2221485..3b67da9 100644
--- a/drivers/lguest/lguest_user.c
+++ b/drivers/lguest/lguest_user.c
@@ -182,7 +182,7 @@ static int initialize(struct file *file, const unsigned long __user *input)
}

/* Populate the easy fields of our "struct lguest" */
- lg->mem_base = (void __user *)(long)args[0];
+ lg->mem_base = (void __user *)args[0];
lg->pfn_limit = args[1];

/* This is the first cpu */
--
1.5.3.GIT


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/