* [PATCH -next] media: tw68: fix build errors and warnings
@ 2014-10-06 17:05 Randy Dunlap
2014-10-22 10:52 ` Hans Verkuil
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2014-10-06 17:05 UTC (permalink / raw)
To: linux-media, Mauro Carvalho Chehab, Hans Verkuil; +Cc: Jim Davis
From: Randy Dunlap <rdunlap@infradead.org>
Fix build errors and kconfig warning: since 'select' does not check
Kconfig symbol dependencies, add that dependency explicitly.
VIDEO_TW68 selects I2C_ALGOBIT, so it should depend on I2C to
prevent build errors and warnings.
warning: (CAN_PEAK_PCIEC && SFC && IGB && VIDEO_TW68 && DRM && FB_DDC && FB_VIA) selects I2C_ALGOBIT which has unmet direct dependencies (I2C)
CC [M] drivers/i2c/algos/i2c-algo-bit.o
../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_bus':
../drivers/i2c/algos/i2c-algo-bit.c:658:33: error: 'i2c_add_adapter' undeclared (first use in this function)
../drivers/i2c/algos/i2c-algo-bit.c:658:33: note: each undeclared identifier is reported only once for each function it appears in
../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_numbered_bus':
../drivers/i2c/algos/i2c-algo-bit.c:664:33: error: 'i2c_add_numbered_adapter' undeclared (first use in this function)
../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_bus':
../drivers/i2c/algos/i2c-algo-bit.c:659:1: warning: control reaches end of non-void function [-Wreturn-type]
../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_numbered_bus':
../drivers/i2c/algos/i2c-algo-bit.c:665:1: warning: control reaches end of non-void function [-Wreturn-type]
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
---
drivers/media/pci/tw68/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20141001.orig/drivers/media/pci/tw68/Kconfig
+++ linux-next-20141001/drivers/media/pci/tw68/Kconfig
@@ -1,6 +1,6 @@
config VIDEO_TW68
tristate "Techwell tw68x Video For Linux"
- depends on VIDEO_DEV && PCI && VIDEO_V4L2
+ depends on VIDEO_DEV && PCI && VIDEO_V4L2 && I2C
select I2C_ALGOBIT
select VIDEOBUF2_DMA_SG
---help---
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] media: tw68: fix build errors and warnings
2014-10-06 17:05 [PATCH -next] media: tw68: fix build errors and warnings Randy Dunlap
@ 2014-10-22 10:52 ` Hans Verkuil
0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2014-10-22 10:52 UTC (permalink / raw)
To: Randy Dunlap, linux-media, Mauro Carvalho Chehab; +Cc: Jim Davis
Hi Randy,
After analyzing this it became clear that the I2C_ALGOBIT select was bogus
since this driver doesn't use i2c at all. I've posted a new patch fixing that.
Thanks,
Hans
On 10/06/2014 07:05 PM, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
>
> Fix build errors and kconfig warning: since 'select' does not check
> Kconfig symbol dependencies, add that dependency explicitly.
>
> VIDEO_TW68 selects I2C_ALGOBIT, so it should depend on I2C to
> prevent build errors and warnings.
>
> warning: (CAN_PEAK_PCIEC && SFC && IGB && VIDEO_TW68 && DRM && FB_DDC && FB_VIA) selects I2C_ALGOBIT which has unmet direct dependencies (I2C)
> CC [M] drivers/i2c/algos/i2c-algo-bit.o
> ../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_bus':
> ../drivers/i2c/algos/i2c-algo-bit.c:658:33: error: 'i2c_add_adapter' undeclared (first use in this function)
> ../drivers/i2c/algos/i2c-algo-bit.c:658:33: note: each undeclared identifier is reported only once for each function it appears in
> ../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_numbered_bus':
> ../drivers/i2c/algos/i2c-algo-bit.c:664:33: error: 'i2c_add_numbered_adapter' undeclared (first use in this function)
> ../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_bus':
> ../drivers/i2c/algos/i2c-algo-bit.c:659:1: warning: control reaches end of non-void function [-Wreturn-type]
> ../drivers/i2c/algos/i2c-algo-bit.c: In function 'i2c_bit_add_numbered_bus':
> ../drivers/i2c/algos/i2c-algo-bit.c:665:1: warning: control reaches end of non-void function [-Wreturn-type]
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Hans Verkuil <hverkuil@xs4all.nl>
> ---
> drivers/media/pci/tw68/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20141001.orig/drivers/media/pci/tw68/Kconfig
> +++ linux-next-20141001/drivers/media/pci/tw68/Kconfig
> @@ -1,6 +1,6 @@
> config VIDEO_TW68
> tristate "Techwell tw68x Video For Linux"
> - depends on VIDEO_DEV && PCI && VIDEO_V4L2
> + depends on VIDEO_DEV && PCI && VIDEO_V4L2 && I2C
> select I2C_ALGOBIT
> select VIDEOBUF2_DMA_SG
> ---help---
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-22 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-06 17:05 [PATCH -next] media: tw68: fix build errors and warnings Randy Dunlap
2014-10-22 10:52 ` Hans Verkuil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).