From: Namhyung Kim Date: Wed, 15 Sep 2010 11:08:27 +0000 (+0200) Subject: block: fix an address space warning in blk-map.c X-Git-Tag: v2.6.37-rc1~168^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=144177991ca624841ddbd1e7edff958fc0f6d1fe;p=pandora-kernel.git block: fix an address space warning in blk-map.c Change type of 2nd parameter of blk_rq_aligned() into unsigned long and remove unnecessary casting. Now we can call it with 'uaddr' instead of 'ubuf' in __blk_rq_map_user() so that it can remove following warnings from sparse: block/blk-map.c:57:31: warning: incorrect type in argument 2 (different address spaces) block/blk-map.c:57:31: expected void *addr block/blk-map.c:57:31: got void [noderef] *ubuf However blk_rq_map_kern() needs one more local variable to handle it. Signed-off-by: Namhyung Kim Signed-off-by: Jens Axboe --- Reading git-diff-tree failed