aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2011-11-01 00:12:32 +0000
committerLinus Torvalds <[email protected]>2011-11-01 00:30:56 +0000
commitb9c321fd87b61f70888511d286500519d8b34141 (patch)
treea9b85ebc499116d3db03ab1b6a0bb858b54ed4b3 /lib/string.c
parentlib/spinlock_debug.c: print owner on spinlock lockup (diff)
downloadkernel-b9c321fd87b61f70888511d286500519d8b34141.tar.gz
kernel-b9c321fd87b61f70888511d286500519d8b34141.zip
lib/bitmap.c: quiet sparse noise about address space
__bitmap_parse() and __bitmap_parselist() both take a pointer to a kernel buffer as a parameter and then cast it to a pointer to user buffer for use in cases when the parameter is_user indicates that the buffer is actually located in user space. This casting, and the casts in the callers, results in sparse noise like the following: warning: incorrect type in initializer (different address spaces) expected char const [noderef] <asn:1>*ubuf got char const *buf warning: cast removes address space of expression Since these casts are intentional, use __force to quiet the noise. Signed-off-by: H Hartley Sweeten <[email protected]> Cc: Len Brown <[email protected]> Cc: Huang Ying <[email protected]> Cc: Andy Shevchenko <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions