• F
    Btrfs: fix sparse warning · d447d0da
    Fabian Frederick 提交于
    Fix the following sparse warning:
    fs/btrfs/send.c:518:51: warning: incorrect type in argument 2 (different address spaces)
    fs/btrfs/send.c:518:51:    expected char const [noderef] <asn:1>*<noident>
    fs/btrfs/send.c:518:51:    got char *
    
    We can safely use (const char __user *) with set_fs(KERNEL_DS)
    
    __force added to avoid sparse-all warning:
    fs/btrfs/send.c:518:40: warning: cast adds address space to expression (<asn:1>)
    Signed-off-by: NFabian Frederick <fabf@skynet.be>
    Reviewed-by: NZach Brown <zab@zabbo.net>
    Signed-off-by: NChris Mason <clm@fb.com>
    d447d0da
send.c 132.7 KB