From: Andrew Morton Date: Wed, 28 Sep 2011 00:50:46 +0000 (+1000) Subject: lib-bitmapc-quiet-sparse-noise-about-address-space-fix X-Git-Tag: next-20110930~1^2~74 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=edd208003b0fb6d9578da1d615787db07d444e0e;p=karo-tx-linux.git lib-bitmapc-quiet-sparse-noise-about-address-space-fix Cc: Andi Kleen Cc: Andy Shevchenko Cc: H Hartley Sweeten Cc: H Hartley Sweeten Cc: Huang Ying Cc: Len Brown Signed-off-by: Andrew Morton <> --- diff --git a/lib/bitmap.c b/lib/bitmap.c index b7b71bd38028..0d4a127dd9b3 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c @@ -419,7 +419,7 @@ int __bitmap_parse(const char *buf, unsigned int buflen, { int c, old_c, totaldigits, ndigits, nchunks, nbits; u32 chunk; - const char __user __force *ubuf = buf; + const char __user __force *ubuf = (const char __user __force *)buf; bitmap_zero(maskp, nmaskbits); @@ -596,7 +596,7 @@ static int __bitmap_parselist(const char *buf, unsigned int buflen, { unsigned a, b; int c, old_c, totaldigits; - const char __user __force *ubuf = buf; + const char __user __force *ubuf = (const char __user __force *)buf; int exp_digit, in_range; totaldigits = c = 0;