1. 15 1月, 2014 10 次提交
  2. 14 1月, 2014 6 次提交
    • M
      [media] tea575x: Fix build with ARCH=c6x · eab924d0
      Mauro Carvalho Chehab 提交于
      In file included from /devel/v4l/temp/include/asm-generic/page.h:23:0,
                       from /devel/v4l/temp/arch/c6x/include/asm/page.h:9,
                       from /devel/v4l/temp/include/asm-generic/io.h:14,
                       from arch/c6x/include/generated/asm/io.h:1,
                       from /devel/v4l/temp/drivers/media/radio/tea575x.c:23:
      /devel/v4l/temp/arch/c6x/include/asm/setup.h:17:27: error: unknown type name ‘phys_addr_t’
       extern int c6x_add_memory(phys_addr_t start, unsigned long size);
      
      It seems that, on such arch, the includes from asm/ should be
      after the ones from linux/.
      
      The proper fix would be to patch the arch files, but, as
      this fix is trivial, apply it. Also, we generally put the
      asm includes after the linux ones, anyway.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      eab924d0
    • M
      [media] lirc_parallel: avoid name conflict on mn10300 arch · 986058e1
      Mauro Carvalho Chehab 提交于
      The "irq_handler" name is already defined there on a header
      file:
      
      /devel/v4l/temp/drivers/staging/media/lirc/lirc_parallel.c:223:13: error: conflicting types for ‘irq_handler’
       static void irq_handler(void *blah)
                   ^
      In file included from /devel/v4l/temp/arch/mn10300/include/asm/reset-regs.h:16:0,
                       from /devel/v4l/temp/arch/mn10300/include/asm/irq.h:18,
                       from /devel/v4l/temp/include/linux/irq.h:24,
                       from /devel/v4l/temp/arch/mn10300/include/asm/hardirq.h:16,
                       from /devel/v4l/temp/include/linux/preempt_mask.h:5,
                       from /devel/v4l/temp/include/linux/sched.h:25,
                       from /devel/v4l/temp/include/linux/utsname.h:5,
                       from /devel/v4l/temp/arch/mn10300/include/asm/elf.h:15,
                       from /devel/v4l/temp/include/linux/elf.h:4,
                       from /devel/v4l/temp/include/linux/module.h:14,
                       from /devel/v4l/temp/drivers/staging/media/lirc/lirc_parallel.c:29:
      /devel/v4l/temp/arch/mn10300/include/asm/exceptions.h:107:24: note: previous declaration of ‘irq_handler’ was here
       extern asmlinkage void irq_handler(void);
      
      /devel/v4l/patchwork/drivers/staging/media/lirc/lirc_serial.c:653:20: error: conflicting types for ‘irq_handler’
       static irqreturn_t irq_handler(int i, void *blah)
                          ^
      In file included from /devel/v4l/patchwork/arch/mn10300/include/asm/reset-regs.h:16:0,
                       from /devel/v4l/patchwork/arch/mn10300/include/asm/irq.h:18,
                       from /devel/v4l/patchwork/include/linux/irq.h:24,
                       from /devel/v4l/patchwork/arch/mn10300/include/asm/hardirq.h:16,
                       from /devel/v4l/patchwork/include/linux/preempt_mask.h:5,
                       from /devel/v4l/patchwork/include/linux/sched.h:25,
                       from /devel/v4l/patchwork/include/linux/utsname.h:5,
                       from /devel/v4l/patchwork/arch/mn10300/include/asm/elf.h:15,
                       from /devel/v4l/patchwork/include/linux/elf.h:4,
                       from /devel/v4l/patchwork/include/linux/module.h:14,
                       from /devel/v4l/patchwork/drivers/staging/media/lirc/lirc_serial.c:53:
      /devel/v4l/patchwork/arch/mn10300/include/asm/exceptions.h:107:24: note: previous declaration of ‘irq_handler’ was here
       extern asmlinkage void irq_handler(void);
      
      So, rename it, to avoid namespace conflicts.
      
      This patch fixes building media drivers with allyesconfig/almodconfig on
      mn10300 arch.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      986058e1
    • M
      [media] go7007-usb: only use go->dev after allocated · c61c3094
      Mauro Carvalho Chehab 提交于
      Fixes those warnings:
      	drivers/staging/media/go7007/go7007-usb.c: In function 'go7007_usb_probe':
      	drivers/staging/media/go7007/go7007-usb.c:1060: warning: 'go' is used uninitialized in this function
      
      While here, comment a code that will never run.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      c61c3094
    • M
      [media] dib8000: Fix a few warnings when compiled for avr32 · e4a3bc1c
      Mauro Carvalho Chehab 提交于
      	drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_get_time_us':
      	drivers/media/dvb-frontends/dib8000.c:3957: warning: 'interleaving' may be used uninitialized in this function
      	drivers/media/dvb-frontends/dib8000.c:3956: warning: 'rate_denum' may be used uninitialized in this function
      
      Those are actually false positives, but it doesn't hurt cleaning them.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      e4a3bc1c
    • M
      [media] dib8000: Properly represent long long integers · 5dc8526b
      Mauro Carvalho Chehab 提交于
      When compiling with avr32, it gets those errors:
      
      	drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_get_stats':
      	drivers/media/dvb-frontends/dib8000.c:4121: warning: integer constant is too large for 'long' type
      
      Fix integer representation to avoid overflow.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      5dc8526b
    • M
      [media] radio-usb-si4713: make si4713_register_i2c_adapter static · 6fcd3b61
      Mauro Carvalho Chehab 提交于
      This function isn't used nowhere outside the same .c file.
      Fixes this warning:
      
      drivers/media/radio/si4713/radio-usb-si4713.c:418:5: warning: no previous prototype for 'si4713_register_i2c_adapter' [-Wmissing-prototypes]
       int si4713_register_i2c_adapter(struct si4713_usb_device *radio)
           ^
      
      Cc: Hans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      6fcd3b61
  3. 13 1月, 2014 9 次提交
  4. 12 1月, 2014 10 次提交
  5. 10 1月, 2014 5 次提交