Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1496587
| From | Emil Velikov <emil.l.velikov@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v9 17/19] drm/virtio: kconfig: Fix recursive dependency issue. |
| Date | 2016-10-06 12:50 +0200 |
| Message-ID | <spepr-7ra-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <se1YC-4eB-31@gated-at.bofh.it> <sjg0W-3wX-21@gated-at.bofh.it> <sjoKS-y5-13@gated-at.bofh.it> <sjpGW-179-17@gated-at.bofh.it> <spdjI-6HB-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 6 October 2016 at 10:37, Peter Griffin <peter.griffin@linaro.org> wrote:
> In fact the help text for VIRTIO even states this option should be selected
> by any driver which implements virtio.
>
Almost but not quite. It says:
"This option is selected by any driver which implements the virtio _bus_"
REMOTEPROC obviously does that while the ST SLIM driver does not. Thus
the latter should _not_ select, be that explicitly or implicitly via
REMOTEPROC, the symbol.
>>
>> People tend to abuse select because it's "convenient". If you depend,
>> but some of your dependencies aren't met, you're in for some digging
>> through Kconfig to find the missing deps. Just to make the option you
>> want visible in menuconfig. If you instead select something with
>> dependencies, it'll be right most of the time, and it's "convenient",
>> until it breaks. (And hey, it usually breaks for someone else with some
>> other config, so it's still convenient for you.)
>
> I'm sure they do but in this case it is actually the use of 'depends on'
> which has caused the breakage and inconvenience for somebody else and sadly this
> inconvienice is still on-going due to this patch not being applied or getting an
> acked-by from the appropriate maintainers.
>
Surely you're not saying that pre-existing driver following the
documentation, is 'causing breakage' for a new driver {ab,mis}using a
feature ?
This reminds me an old saying: "If the shoe doesn’t fit, it doesn’t
mean there is anything wrong with your feet."
You seem to be suggesting the opposite ?
>>
>> Perhaps kconfig should complain about selecting visible symbols and
>> symbols with dependencies.
>
> That sounds like it would be a useful addition.
>
> Is it possible to get this patch applied or an acked-by to avoid further delay
> to the fdma series?
>
Please don't apply duct tape, especially where it's _not_ needed.
$ sed -i s/select REMOTEPROC/depends on REMOTEPROC/ drivers/remoteproc/Kconfig
... will resolve things in the right place. The alternative will lead
to random issues in other subsystems.
Regards,
Emil
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v9 17/19] drm/virtio: kconfig: Fix recursive dependency issue. Peter Griffin <peter.griffin@linaro.org> - 2016-10-06 11:40 +0200
Re: [PATCH v9 17/19] drm/virtio: kconfig: Fix recursive dependency issue. Emil Velikov <emil.l.velikov@gmail.com> - 2016-10-06 12:50 +0200
Re: [PATCH v9 17/19] drm/virtio: kconfig: Fix recursive dependency issue. Peter Griffin <peter.griffin@linaro.org> - 2016-10-07 19:50 +0200
csiph-web