1. 07 Nov, 2013 4 commits
    • Mauro Carvalho Chehab's avatar
      [media] cx18: struct i2c_client is too big for stack · 1d212cf0
      Mauro Carvalho Chehab authored
      	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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      1d212cf0
    • Mauro Carvalho Chehab's avatar
      [media] zoran: don't build it on alpha · 51d8e7fb
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      51d8e7fb
    • Mauro Carvalho Chehab's avatar
      [media] radio-shark: remove a warning when CONFIG_PM is not defined · c5b0b3cb
      Mauro Carvalho Chehab authored
      On alpha, allyesconfig doesn't have CONFIG_PM, and produces the following warnings:
      	drivers/media/radio/radio-shark.c:274:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function]
      	drivers/media/radio/radio-shark2.c:240:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function]
      That's because those functions are used only at device resume.
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      c5b0b3cb
    • Mauro Carvalho Chehab's avatar
      [media] tda9887: remove an warning when compiling for alpha · 408679cd
      Mauro Carvalho Chehab authored
      There's no need to zero the buffer, as if the routine gets an error,
      rc will be different than one.
      That fixes the following warning:
      	drivers/media/tuners/tda9887.c: In function 'tda9887_status':
      	drivers/media/tuners/tda9887.c:539:2: warning: value computed is not used [-Wunused-value]
      While here, make fix the CodingStyle on this function.
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      408679cd
  2. 31 Oct, 2013 29 commits
  3. 28 Oct, 2013 7 commits