* [PATCH] media: usb: b2c2: Kconfig: add PCI dependancy to DVB_B2C2_FLEXCOP_USB
@ 2013-08-30 2:23 Chen Gang
[not found] ` <3939732.OJKiKvCJjt@dibcom294>
2013-08-30 9:23 ` Patrick Boettcher
0 siblings, 2 replies; 3+ messages in thread
From: Chen Gang @ 2013-08-30 2:23 UTC (permalink / raw)
To: m.chehab; +Cc: linux-media
DVB_B2C2_FLEXCOP_USB need depend on PCI, or can not pass compiling with
allmodconfig for h8300.
The related error:
drivers/media/usb/b2c2/flexcop-usb.c: In function 'flexcop_usb_transfer_exit':
drivers/media/usb/b2c2/flexcop-usb.c:393:3: error: implicit declaration of function 'pci_free_consistent' [-Werror=implicit-function-declaration]
pci_free_consistent(NULL,
^
drivers/media/usb/b2c2/flexcop-usb.c: In function 'flexcop_usb_transfer_init':
drivers/media/usb/b2c2/flexcop-usb.c:410:2: error: implicit declaration of function 'pci_alloc_consistent' [-Werror=implicit-function-declaration]
fc_usb->iso_buffer = pci_alloc_consistent(NULL,
^
drivers/media/usb/b2c2/flexcop-usb.c:410:21: warning: assignment makes pointer from integer without a cast [enabled by default]
fc_usb->iso_buffer = pci_alloc_consistent(NULL,
^
cc1: some warnings being treated as errors
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
drivers/media/usb/b2c2/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/usb/b2c2/Kconfig b/drivers/media/usb/b2c2/Kconfig
index 17d3583..06fdf30 100644
--- a/drivers/media/usb/b2c2/Kconfig
+++ b/drivers/media/usb/b2c2/Kconfig
@@ -1,6 +1,6 @@
config DVB_B2C2_FLEXCOP_USB
tristate "Technisat/B2C2 Air/Sky/Cable2PC USB"
- depends on DVB_CORE && I2C
+ depends on DVB_CORE && I2C && PCI
help
Support for the Air/Sky/Cable2PC USB1.1 box (DVB/ATSC) by Technisat/B2C2,
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] media: usb: b2c2: Kconfig: add PCI dependancy to DVB_B2C2_FLEXCOP_USB
[not found] ` <3939732.OJKiKvCJjt@dibcom294>
@ 2013-08-30 8:32 ` Chen Gang
0 siblings, 0 replies; 3+ messages in thread
From: Chen Gang @ 2013-08-30 8:32 UTC (permalink / raw)
To: Patrick Boettcher; +Cc: m.chehab, linux-media
On 08/30/2013 04:06 PM, Patrick Boettcher wrote:
> Hi,
>
>
>
> On Friday 30 August 2013 10:23:24 Chen Gang wrote:
>
>> DVB_B2C2_FLEXCOP_USB need depend on PCI, or can not pass compiling with
>
>> allmodconfig for h8300.
>
>>
>
>> The related error:
>
>>
>
>> drivers/media/usb/b2c2/flexcop-usb.c: In function
>
>> 'flexcop_usb_transfer_exit': drivers/media/usb/b2c2/flexcop-usb.c:393:3:
>
>> error: implicit declaration of function 'pci_free_consistent'
>
>> [-Werror=implicit-function-declaration] pci_free_consistent(NULL,
>
>>
>
>> [..]
>
>>
>
>> config DVB_B2C2_FLEXCOP_USB
>
>> tristate "Technisat/B2C2 Air/Sky/Cable2PC USB"
>
>> - depends on DVB_CORE && I2C
>
>> + depends on DVB_CORE && I2C && PCI
>
>> help
>
>> Support for the Air/Sky/Cable2PC USB1.1 box (DVB/ATSC) by
>
>> Technisat/B2C2,
>
>
>
> Instead of selecting PCI we could/should use usb_alloc_coherent() and
> usb_free_cohrerent(), shouldn't we?
>
Hmm... maybe it is a good idea, but I am just trying another ways.
Just now, I find that the module which calls pci*consistent() may not be
pci dependent module (e.g. may depend on ISA or EISA instead of).
So "arch/h8300/include/asm/pci.h" has related issues, I am just fixing.
Maybe our case is not an issue, after "asm/pci.h" fixed (although for
our case only, it can be improved, too, and if you are sure about it,
please help improving it, thanks).
>
>
> --
>
> Patrick
>
Thanks.
--
Chen Gang
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] media: usb: b2c2: Kconfig: add PCI dependancy to DVB_B2C2_FLEXCOP_USB
2013-08-30 2:23 [PATCH] media: usb: b2c2: Kconfig: add PCI dependancy to DVB_B2C2_FLEXCOP_USB Chen Gang
[not found] ` <3939732.OJKiKvCJjt@dibcom294>
@ 2013-08-30 9:23 ` Patrick Boettcher
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Boettcher @ 2013-08-30 9:23 UTC (permalink / raw)
To: linux-media
Hi (sending again due to HTML-nonsense in Mail),
On Friday 30 August 2013 10:23:24 Chen Gang wrote:
> DVB_B2C2_FLEXCOP_USB need depend on PCI, or can not pass compiling with
> allmodconfig for h8300.
>
> The related error:
>
> drivers/media/usb/b2c2/flexcop-usb.c: In function
> 'flexcop_usb_transfer_exit': drivers/media/usb/b2c2/flexcop-usb.c:393:3:
> error: implicit declaration of function 'pci_free_consistent'
> [-Werror=implicit-function-declaration] pci_free_consistent(NULL,
>
> [..]
>
> config DVB_B2C2_FLEXCOP_USB
> tristate "Technisat/B2C2 Air/Sky/Cable2PC USB"
> - depends on DVB_CORE && I2C
> + depends on DVB_CORE && I2C && PCI
> help
> Support for the Air/Sky/Cable2PC USB1.1 box (DVB/ATSC) by
> Technisat/B2C2,
Instead of selecting PCI we could/should use usb_alloc_coherent() and
usb_free_cohrerent(), shouldn't we?
--
Patrick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-30 9:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30 2:23 [PATCH] media: usb: b2c2: Kconfig: add PCI dependancy to DVB_B2C2_FLEXCOP_USB Chen Gang
[not found] ` <3939732.OJKiKvCJjt@dibcom294>
2013-08-30 8:32 ` Chen Gang
2013-08-30 9:23 ` Patrick Boettcher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox