Skip to content
  • Namhyung Kim's avatar
    bsg: fix address space warning from sparse · 2b727c63
    Namhyung Kim authored
    
    
    copy_from/to_user() and blk_rq_map_user() want __user pointer.
    This patch fixes following warnings from sparse:
    
       CHECK   block/bsg.c
     block/bsg.c:185:38: warning: incorrect type in argument 2 (different address spaces)
     block/bsg.c:185:38:    expected void const [noderef] <asn:1>*from
     block/bsg.c:185:38:    got void *<noident>
     block/bsg.c:295:58: warning: incorrect type in argument 4 (different address spaces)
     block/bsg.c:295:58:    expected void [noderef] <asn:1>*<noident>
     block/bsg.c:295:58:    got void *[assigned] dxferp
     block/bsg.c:311:52: warning: incorrect type in argument 4 (different address spaces)
     block/bsg.c:311:52:    expected void [noderef] <asn:1>*<noident>
     block/bsg.c:311:52:    got void *[assigned] dxferp
     block/bsg.c:448:37: warning: incorrect type in argument 1 (different address spaces)
     block/bsg.c:448:37:    expected void [noderef] <asn:1>*dst
     block/bsg.c:448:37:    got void *<noident>
    
    Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
    Acked-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
    Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
    2b727c63