1. 07 1月, 2014 6 次提交
  2. 11 12月, 2013 3 次提交
  3. 10 12月, 2013 1 次提交
  4. 30 11月, 2013 3 次提交
  5. 08 11月, 2013 4 次提交
    • M
      [media] cimax2: Don't use dynamic static allocation · 278ba83a
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
              drivers/media/pci/cx23885/cimax2.c:149:1: warning: 'netup_write_i2c' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer. Considering that I2C
      transfers are generally limited, and that devices used on USB has a
      max data length of 64 bytes for the control URBs.
      So, it seem safe to use 64 bytes as the hard limit for all those devices.
      On most cases, the limit is a way lower than that, but this limit
      is small enough to not affect the Kernel stack, and it is a no brain
      limit, as using smaller ones would require to either carefully each
      driver or to take a look on each datasheet.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      278ba83a
    • M
      [media] av7110_hw: Don't use dynamic static allocation · 5bf30b3b
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
      	drivers/media/pci/ttpci/av7110_hw.c:510:1: warning: 'av7110_fw_cmd' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer.
      In the specific case of this driver, the maximum fw command size
      is 6 + 2, as checked using:
      	$ git grep -A1 av7110_fw_cmd drivers/media/pci/ttpci/
      So, use 8 for the buffer size.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      5bf30b3b
    • M
      [media] cx18: struct i2c_client is too big for stack · 1d212cf0
      Mauro Carvalho Chehab 提交于
      	drivers/media/pci/cx18/cx18-driver.c: In function 'cx18_read_eeprom':
      	drivers/media/pci/cx18/cx18-driver.c:357:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
      That happens because the routine allocates 256 bytes for an eeprom buffer, plus
      the size of struct i2c_client, with is big.
      Change the logic to dynamically allocate/deallocate space for struct i2c_client,
      instead of  using the stack.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      1d212cf0
    • M
      [media] zoran: don't build it on alpha · 51d8e7fb
      Mauro Carvalho Chehab 提交于
      This driver uses virt_to_bus() with is deprecated on Alpha:
      	drivers/media/pci/zoran/zoran_device.c: In function 'zr36057_set_vfe':
      	drivers/media/pci/zoran/zoran_device.c:451:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_device.c:453:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_device.c: In function 'zr36057_set_jpg':
      	drivers/media/pci/zoran/zoran_device.c:796:2: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c: In function 'v4l_fbuffer_alloc':
      	drivers/media/pci/zoran/zoran_driver.c:241:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c:245:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c: In function 'jpg_fbuffer_alloc':
      	drivers/media/pci/zoran/zoran_driver.c:334:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c:347:5: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c:366:6: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      As we're not even sure if it works on Alpha, better to just disable its compilation there.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      51d8e7fb
  6. 31 10月, 2013 3 次提交
  7. 17 10月, 2013 17 次提交
  8. 14 10月, 2013 2 次提交
  9. 03 10月, 2013 1 次提交