Re: [PATCH 1/5] block: Fix type of first compat_put_{,u}long() argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 16, 2020 at 2:19 AM Bart Van Assche <bvanassche@xxxxxxx> wrote:
>
> This patch fixes the following sparse warnings:
>
> block/ioctl.c:209:16: warning: incorrect type in argument 1 (different address spaces)
> block/ioctl.c:209:16:    expected void const volatile [noderef] <asn:1> *
> block/ioctl.c:209:16:    got signed int [usertype] *argp
> block/ioctl.c:214:16: warning: incorrect type in argument 1 (different address spaces)
> block/ioctl.c:214:16:    expected void const volatile [noderef] <asn:1> *
> block/ioctl.c:214:16:    got unsigned int [usertype] *argp
> block/ioctl.c:666:40: warning: incorrect type in argument 1 (different address spaces)
> block/ioctl.c:666:40:    expected signed int [usertype] *argp
> block/ioctl.c:666:40:    got void [noderef] <asn:1> *argp
> block/ioctl.c:672:41: warning: incorrect type in argument 1 (different address spaces)
> block/ioctl.c:672:41:    expected unsigned int [usertype] *argp
> block/ioctl.c:672:41:    got void [noderef] <asn:1> *argp
>
> Cc: Arnd Bergmann <arnd@xxxxxxxx>
> Fixes: 9b81648cb5e3 ("compat_ioctl: simplify up block/ioctl.c")
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>

Thanks for the fix!

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux