[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 02 Feb 2010 07:58:39 +0200
From: Artem Bityutskiy <dedekind1@...il.com>
To: H Hartley Sweeten <hartleys@...ionengravers.com>
Cc: Linux Kernel <linux-kernel@...r.kernel.org>,
linux-mtd@...ts.infradead.org, dwmw2@...radead.org
Subject: Re: [PATCH] mtdchar.c: fix different address space noise
On Fri, 2010-01-15 at 11:25 -0700, H Hartley Sweeten wrote:
> mtdchar.c: fix different address space noise
>
> In mtd_ioctl MEMGETREGIONINFO the region_user_info pointer ur
> is cast in __kernel space. This produces a number of sparse warnings
> like:
>
> warning: cast removes address space of expression
> warning: incorrect type in initializer (different address spaces)
> expected unsigned int const [noderef] <asn:1>*register __p
> got unsigned int *<noident>
>
> Since argp is already a void __user * just use it dirrectly without
> the cast and make ur a __user *.
>
> Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
> Cc: David Woodhouse <dwmw2@...radead.org>
Pushed this one to my l2-mtd-2.6 / master
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists