Re: [PATCH] [media] [kbuild] Add and use IS_REACHABLE macro

2015-02-20 Thread Michal Marek
On 2015-02-20 10:29, Arnd Bergmann wrote: > On Thursday 19 February 2015 16:06:18 Michal Marek wrote: >>> We have similar problems in other areas >>> of the kernel. In theory, we could enforce the VIDEO_TUNER driver to >>> be modular here by adding lots of dependencies to it: >>> >>> config VIDEO_T

Re: [PATCH] [media] [kbuild] Add and use IS_REACHABLE macro

2015-02-20 Thread Mauro Carvalho Chehab
Em Fri, 20 Feb 2015 10:29:42 +0100 Arnd Bergmann escreveu: > On Thursday 19 February 2015 16:06:18 Michal Marek wrote: > > > We have similar problems in other areas > > > of the kernel. In theory, we could enforce the VIDEO_TUNER driver to > > > be modular here by adding lots of dependencies to i

Re: [PATCH] [media] [kbuild] Add and use IS_REACHABLE macro

2015-02-20 Thread Arnd Bergmann
On Thursday 19 February 2015 16:06:18 Michal Marek wrote: > > We have similar problems in other areas > > of the kernel. In theory, we could enforce the VIDEO_TUNER driver to > > be modular here by adding lots of dependencies to it: > > > > config VIDEO_TUNER > > tristate > > depends o

Re: [PATCH] [media] [kbuild] Add and use IS_REACHABLE macro

2015-02-19 Thread Michal Marek
Dne 19.2.2015 v 15:53 Arnd Bergmann napsal(a): > On Thursday 19 February 2015 13:11:07 Michal Marek wrote: >> On 2015-02-18 18:12, Arnd Bergmann wrote: >>> In the media drivers, the v4l2 core knows about all submodules >>> and calls into them from a common function. However this cannot >>> work if

Re: [PATCH] [media] [kbuild] Add and use IS_REACHABLE macro

2015-02-19 Thread Arnd Bergmann
On Thursday 19 February 2015 13:11:07 Michal Marek wrote: > On 2015-02-18 18:12, Arnd Bergmann wrote: > > In the media drivers, the v4l2 core knows about all submodules > > and calls into them from a common function. However this cannot > > work if the modules that get called are loadable and the >

Re: [PATCH] [media] [kbuild] Add and use IS_REACHABLE macro

2015-02-19 Thread Michal Marek
On 2015-02-18 18:12, Arnd Bergmann wrote: > In the media drivers, the v4l2 core knows about all submodules > and calls into them from a common function. However this cannot > work if the modules that get called are loadable and the > core is built-in. In that case we get > > drivers/built-in.o: In

[PATCH] [media] [kbuild] Add and use IS_REACHABLE macro

2015-02-18 Thread Arnd Bergmann
In the media drivers, the v4l2 core knows about all submodules and calls into them from a common function. However this cannot work if the modules that get called are loadable and the core is built-in. In that case we get drivers/built-in.o: In function `set_type': drivers/media/v4l2-core/tuner-co