From edd208003b0fb6d9578da1d615787db07d444e0e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 28 Sep 2011 10:50:46 +1000 Subject: [PATCH] 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 <> --- lib/bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5