2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/drivers/media/usb/cx231xx
Hans Verkuil 27eb5e24e0 [media] cx231xx: fix compiler warnings
If CONFIG_VIDEO_CX231XX_RC is undefined, then these compiler warnings
are generated:

In file included from drivers/media/usb/cx231xx/cx231xx-cards.c:23:0:
drivers/media/usb/cx231xx/cx231xx-cards.c: In function ‘cx231xx_release_resources’:
drivers/media/usb/cx231xx/cx231xx.h:982:30: warning: statement with no effect [-Wunused-value]
 #define cx231xx_ir_exit(dev) (0)
                              ^
drivers/media/usb/cx231xx/cx231xx-cards.c:1158:2: note: in expansion of macro ‘cx231xx_ir_exit’
  cx231xx_ir_exit(dev);
  ^
drivers/media/usb/cx231xx/cx231xx-cards.c: In function ‘cx231xx_init_dev’:
drivers/media/usb/cx231xx/cx231xx.h:981:30: warning: statement with no effect [-Wunused-value]
 #define cx231xx_ir_init(dev) (0)
                              ^
drivers/media/usb/cx231xx/cx231xx-cards.c:1351:2: note: in expansion of macro ‘cx231xx_ir_init’
  cx231xx_ir_init(dev);
  ^
drivers/media/usb/cx231xx/cx231xx-cards.c: In function ‘cx231xx_usb_probe’:
drivers/media/usb/cx231xx/cx231xx.h:982:30: warning: statement with no effect [-Wunused-value]
 #define cx231xx_ir_exit(dev) (0)
                              ^
drivers/media/usb/cx231xx/cx231xx-cards.c:1705:2: note: in expansion of macro ‘cx231xx_ir_exit’
  cx231xx_ir_exit(dev);
  ^
drivers/media/usb/cx231xx/cx231xx-cards.c: In function ‘cx231xx_usb_disconnect’:
drivers/media/usb/cx231xx/cx231xx.h:982:30: warning: statement with no effect [-Wunused-value]
 #define cx231xx_ir_exit(dev) (0)
                              ^
drivers/media/usb/cx231xx/cx231xx-cards.c:1754:3: note: in expansion of macro ‘cx231xx_ir_exit’
   cx231xx_ir_exit(dev);
   ^

Fix by using static inlines instead of defines.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-04-02 18:24:04 -03:00
..
cx231xx-417.c [media] usb: Make use of media_bus_format enum 2014-11-14 17:54:28 -02:00
cx231xx-audio.c [media] cx231xx: Remove a bogus check for NULL 2014-11-03 18:56:48 -02:00
cx231xx-avcore.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-cards.c [media] cx231xx: Hauppauge HVR-955Q ATSC/QAM tuner 2015-03-03 10:36:12 -03:00
cx231xx-conf-reg.h
cx231xx-core.c [media] cx231xx: drop condition with no effect 2015-03-02 14:39:32 -03:00
cx231xx-dif.h
cx231xx-dvb.c [media] cx231xx: Hauppauge HVR-955Q ATSC/QAM tuner 2015-03-03 10:36:12 -03:00
cx231xx-i2c.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-input.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.h [media] cx231xx: return an error if it can't read PCB config 2014-07-27 16:57:43 -03:00
cx231xx-reg.h
cx231xx-vbi.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-vbi.h
cx231xx-video.c [media] cx231xx: enable the analog tuner at buffer setup 2015-02-26 08:45:25 -03:00
cx231xx.h [media] cx231xx: fix compiler warnings 2015-04-02 18:24:04 -03:00
Kconfig [media] cx231xx: Hauppauge HVR-955Q ATSC/QAM tuner 2015-03-03 10:36:12 -03:00
Makefile