lkml.org 
[lkml]   [2010]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block: fix an address space warning in blk-map.c
On 2010-09-14 17:42, Namhyung Kim wrote:
> 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] <asn:1>*ubuf
>
> However blk_rq_map_kern() needs one more local variable to handle it.

Thanks, applied to for-2.6.37/core

--
Jens Axboe



\
 
 \ /
  Last update: 2010-09-15 13:09    [W:0.258 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site