Re: [PATCH] kconfig: untangle EXPERT and EMBEDDED
From: David Rientjes
Date: Mon Jan 16 2012 - 18:28:35 EST
On Mon, 16 Jan 2012, Andrew Jones wrote:
> > CONFIG_EXPERT does work, there haven't been problems reported with it in
> > the year that it has been in the kernel, and CONFIG_EMBEDDED is available
> > to be extended to have its logical semantics. Right now, CONFIG_EMBEDDED
> > is pretty useless other than setting CONFIG_EXPERT but that could easily
>
> Um? Isn't the whole point of me sending a patch because there's a problem?
> Thus THIS is problem report. Who else besides a kernel developer would
> even notice this problem? As you say, EMBEDDED does nothing more than
> select EXPERT, which does exactly the same thing as EMBEDDED did.
Except now it can be extended for its original semantics, as I've
explained to you multiple times.
> Therefore to people using EMBEDDED there has been no change.
And that was intended to ensure backwards compatibility so users don't
lose previously set config options if they aren't using a defconfig, which
you've totally ignored.
> But what new
> users of EXPERT will there ever be as long EXPERT twists default config
> options?
>
You may be underestimating how popular CONFIG_EXPERT is.
> > You can't responsibly untangle EXPERT and EMBEDDED without making EMBEDDED
> > not select EXPERT and instead replace config options that should be
> > configurable only on embedded devices to do "depends on EXPERT ||
> > EMBEDDED". That's not what your patch does.
>
> What? A dependency (or in this case a reverse dependency using select)
> does not mean the semantics of the options are tangled. EXPERT should be
> free of those old EMBEDDED semantics and do only one thing, expose expert
> options.
You're wrong, otherwise you BREAK OTHER PEOPLE'S CONFIGURATIONS SILENTLY.
It's a non-starter.
> EMBEDDED can then select it or not, I don't care. As for your
> example "depends on EXPERT || EMBEDDED", that doesn't matter to me either.
That's the only way you can extend CONFIG_EMBEDDED to actually mean
something and is exactly what we wanted to do when the patch was merged:
allow it to identify options that embedded users will want to configure
without exposing all of CONFIG_EXPERT.
> > Breaking backwards compatibility for users who aren't defconfigs is a
> > non-starter, as I've said. Admitting that your patch does it is almost
> > like nacking your own patch.
>
> Like I said (twice), afaik config options aren't in the ABI that we must
> maintain. They're internal to the kernel. While it's nice to keep them the
> same, in order to save people some effort, it's not required.
It's concerning that you choose to hack on the kernel and have such a
reckless attitude for users who choose not to use defconfigs and its even
more concerning that you don't care that they'll now silently lose config
options next time they run make oldconfig with your patch.
> This is a trivial patch for an obvious problem. In all the emails that
> we've exchanged you haven't told me anything I didn't know before posting.
If you knew you were breaking users, then you're just reckless and I want
no part of it.
Nacked-by: David Rientjes <rientjes@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/