1. 01 Sep, 2016 38 commits
  2. 31 Aug, 2016 2 commits
    • Anson Jacob's avatar
      staging: i4l: act2000: capi: Fix checkpatch warning · 5d2b7c4a
      Anson Jacob authored
      Fix checkpath.pl warning:
      trailing statements should be on next line
      open brace '{' following function declarations go on the next line
      Signed-off-by: default avatarAnson Jacob <ansonjacob.aj@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5d2b7c4a
    • Sudip Mukherjee's avatar
      staging: i4l: icn: fix incorrect type of arguments · 8a0b09d9
      Sudip Mukherjee authored
      sparse was warning about incorrect type of argument:
      
      drivers/staging/i4l/icn/icn.c:1048:49: warning: incorrect type in argument 2 (different address spaces)
      drivers/staging/i4l/icn/icn.c:1048:49: expected void const [noderef] <asn:1>*from
      drivers/staging/i4l/icn/icn.c:1048:49: got unsigned char const [usertype] *buf
      drivers/staging/i4l/icn/icn.c:1476:38: warning: incorrect type in argument 1 (different address spaces)
      drivers/staging/i4l/icn/icn.c:1476:38: expected unsigned char const [usertype] *buf
      drivers/staging/i4l/icn/icn.c:1476:38: got unsigned char const [noderef] [usertype] <asn:1>*buf
      
      The function icn_writecmd() was used to copy from userspace and also
      from the kernelspace. Add another argument to the function to have two
      separate pointers, one for the userspace and one for the kernelspace.
      Based on the value of user as passed from the caller we use one of
      the two pointers.
      Signed-off-by: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8a0b09d9