1. 04 9月, 2014 23 次提交
  2. 03 9月, 2014 17 次提交
    • H
      [media] mt2063: fix sparse warnings · fe10b84e
      Hans Verkuil 提交于
      drivers/media/tuners/mt2063.c:1238:56: warning: cast truncates bits from constant value (ffffff0f becomes f)
      drivers/media/tuners/mt2063.c:1313:62: warning: cast truncates bits from constant value (ffffff7f becomes 7f)
      drivers/media/tuners/mt2063.c:1321:62: warning: cast truncates bits from constant value (ffffff7f becomes 7f)
      
      Cast to u8 is unnecessary.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      fe10b84e
    • H
      [media] v4l2-compat-ioctl32: fix sparse warnings · 8ae632b1
      Hans Verkuil 提交于
      A lot of these warnings are caused by the fact that we don't generally use
      __user in videodev2.h. Normally the video_usercopy function will copy anything
      pointed to by pointers into kernel space, so having __user in the struct will only
      cause lots of warnings in the drivers. But the flip side of that is that you
      need to add __force casts here.
      
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:337:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:337:30: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:338:31: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:338:49: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:343:21: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:346:21: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:349:35: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:349:46: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:352:35: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:352:54: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:363:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:363:32: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:364:31: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:364:51: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:371:35: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:371:56: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:376:35: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:376:48: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:430:30: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:433:48: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:433:56: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:501:24: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:507:48: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:507:56: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:565:18: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:670:22: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:680:29: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:692:55: warning: incorrect type in initializer (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:773:18: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:786:30: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:786:44: warning: incorrect type in argument 2 (different address spaces)
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:674:37: warning: dereference of noderef expression
      drivers/media/v4l2-core/v4l2-compat-ioctl32.c:718:37: warning: dereference of noderef expression
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      8ae632b1
    • H
      [media] videodev2.h: add __user to v4l2_ext_control pointers · eadf9e26
      Hans Verkuil 提交于
      These are not copied to kernel space by video_usercopy, so mark them
      as __user.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      eadf9e26
    • H
      [media] em28xx: fix sparse warnings · 4a9e512a
      Hans Verkuil 提交于
      drivers/media/usb/em28xx/em28xx-core.c:297:16: warning: cast to restricted __le16
      drivers/media/usb/em28xx/em28xx-cards.c:2249:20: warning: symbol 'em28xx_bcount' was not declared. Should it be static?
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      4a9e512a
    • H
      [media] cx18: fix sparse warnings · 39fd4460
      Hans Verkuil 提交于
      /home/hans/work/build/media-git/drivers/media/pci/cx18/cx18-firmware.c:169:32: warning: cast to restricted __le32
      /home/hans/work/build/media-git/drivers/media/pci/cx18/cx18-firmware.c:170:32: warning: cast to restricted __le32
      /home/hans/work/build/media-git/drivers/media/pci/cx18/cx18-firmware.c:171:31: warning: cast to restricted __le32
      /home/hans/work/build/media-git/drivers/media/pci/cx18/cx18-firmware.c:172:31: warning: cast to restricted __le32
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      39fd4460
    • H
      [media] ivtv: fix sparse warnings · 3efb8ab6
      Hans Verkuil 提交于
      drivers/media/pci/ivtv/ivtv-irq.c:195:25: warning: incorrect type in argument 1 (different base types)
      drivers/media/pci/ivtv/ivtv-irq.c:199:25: warning: incorrect type in argument 1 (different base types)
      drivers/media/pci/ivtv/ivtv-irq.c:278:35: warning: restricted __le32 degrades to integer
      drivers/media/pci/ivtv/ivtv-irq.c:281:51: warning: restricted __le32 degrades to integer
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      3efb8ab6
    • H
      [media] cx23885: fix sparse warning · 711c3119
      Hans Verkuil 提交于
      drivers/media/pci/cx23885/cx23885-dvb.c:1494:72: warning: Using plain integer as NULL pointer
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      711c3119
    • H
      [media] cxusb: fix sparse warning · 41150cb9
      Hans Verkuil 提交于
      drivers/media/usb/dvb-usb/cxusb.c:178:40: warning: restricted __le16 degrades to integer
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      41150cb9
    • H
      [media] dm1105: fix sparse warning · 888bd5dc
      Hans Verkuil 提交于
      drivers/media/pci/dm1105/dm1105.c:617:9: warning: incorrect type in argument 1 (different base types)
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      888bd5dc
    • H
      [media] cx231xx: fix sparse warnings · 3f9280a8
      Hans Verkuil 提交于
      drivers/media/usb/cx231xx/cx231xx-avcore.c:2226:15: warning: cast to restricted __le32
      drivers/media/usb/cx231xx/cx231xx-avcore.c:2447:15: warning: cast to restricted __le32
      drivers/media/usb/cx231xx/cx231xx-avcore.c:2475:15: warning: cast to restricted __le32
      drivers/media/usb/cx231xx/cx231xx-avcore.c:2500:15: warning: cast to restricted __le32
      drivers/media/usb/cx231xx/cx231xx-avcore.c:2647:18: warning: incorrect type in assignment (different base types)
      drivers/media/usb/cx231xx/cx231xx-avcore.c:2659:21: warning: cast to restricted __le32
      drivers/media/usb/cx231xx/cx231xx-dvb.c:743:57: warning: Using plain integer as NULL pointer
      drivers/media/usb/cx231xx/cx231xx-dvb.c:776:57: warning: Using plain integer as NULL pointer
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      3f9280a8
    • H
      [media] cx25821: fix sparse warning · 38b2b879
      Hans Verkuil 提交于
      drivers/media/pci/cx25821/cx25821-video-upstream.c:334:25: warning: incorrect type in argument 2 (different address spaces)
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      38b2b879
    • H
      [media] via-camera: fix sparse warning · a7547af7
      Hans Verkuil 提交于
      drivers/media/platform/via-camera.c:445:34: warning: incorrect type in assignment (different address spaces)
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      a7547af7
    • H
      [media] lirc_dev: fix sparse warnings · 60519af3
      Hans Verkuil 提交于
      drivers/media/rc/lirc_dev.c:598:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/rc/lirc_dev.c:606:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/rc/lirc_dev.c:616:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/rc/lirc_dev.c:625:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/rc/lirc_dev.c:634:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/rc/lirc_dev.c:643:26: warning: incorrect type in argument 1 (different address spaces)
      drivers/media/rc/lirc_dev.c:739:45: warning: cast removes address space of expression
      drivers/media/rc/lirc_dev.c:739:58: warning: incorrect type in argument 1 (different address spaces)
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      60519af3
    • H
      [media] v4l2-ioctl: fix sparse warnings · 4d1afa51
      Hans Verkuil 提交于
      drivers/media/v4l2-core/v4l2-ioctl.c:1156:53: warning: incorrect type in initializer (different address spaces)
      drivers/media/v4l2-core/v4l2-ioctl.c:1158:42: warning: incorrect type in initializer (different address spaces)
      drivers/media/v4l2-core/v4l2-ioctl.c:1161:34: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-ioctl.c:1163:35: warning: incorrect type in assignment (different address spaces)
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      4d1afa51
    • H
      [media] imon: fix sparse warnings · d778d258
      Hans Verkuil 提交于
      drivers/media/rc/imon.c:1343:44: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1343:44: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1343:44: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1343:44: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1343:44: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1343:44: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1407:36: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1407:36: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1407:36: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1407:36: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1407:36: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1407:36: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1512:28: warning: cast to restricted __be64
      drivers/media/rc/imon.c:1516:28: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1516:28: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1516:28: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1516:28: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1516:28: warning: cast to restricted __be32
      drivers/media/rc/imon.c:1516:28: warning: cast to restricted __be32
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      d778d258
    • H
      [media] si2165: fix sparse warning · e73c7bfe
      Hans Verkuil 提交于
      drivers/media/dvb-frontends/si2165.c:329:16: warning: odd constant _Bool cast (ffffffffffffffea becomes 1)
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      e73c7bfe
    • H
      [media] stv0367: fix sparse warnings · 817d2fd4
      Hans Verkuil 提交于
      drivers/media/dvb-frontends/stv0367.c:557:5: warning: symbol 'stv0367cab_RF_LookUp1' was not declared. Should it be static?
      drivers/media/dvb-frontends/stv0367.c:569:5: warning: symbol 'stv0367cab_RF_LookUp2' was not declared. Should it be static?
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      817d2fd4