Re: [patch] input: JOYSTICK_XPAD build fix

Ingo Molnar
2008-04-30T21:13:41Z

* Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:

> > which triggers with the following config:
> >
> > http://redhat.com/~mingo/misc/config-Wed_Apr_30_21_43_17_CEST_2008.bad
> >
> > the reason is dependency on NEW_LEDS that was not spelled out in the
> > Kconfig entry of JOYSTICK_XPAD.
>
> Xpad can be compiled without LED support so this dependancy is
> incorrect. JOYSTICK_XPAD_LEDS has proper dependancy on LEDS_CLASS, the
> rest is Kconfig breakage.

no, you are wrong, read the current Kconfig rules again. If the user can
create a .config that does not build, it is driver breakage. It always
was, and has been in the past 15 years.

Kconfig might be extended to make dependencies easier to manage for
developers but until that is implemented you have to craft your driver's
dependencies with the current tools in a way that doesnt break the
build.

Ingo