Re: [PATCH 2/2] time: remove the unnecessaryCONFIG_GENERIC_CLOCKEVENS check

From: Feng Tang
Date: Thu Jan 05 2012 - 21:12:58 EST


Hi Paul,

On Thu, Jan 05, 2012 at 12:17:46PM +0100, Paul Bolle wrote:
> On Thu, 2012-01-05 at 21:28 +0800, Feng Tang wrote:
> > In kernel/time/Kconfig:
> > config GENERIC_CLOCKEVENTS_BUILD
> > bool
> > default y
> > depends on GENERIC_CLOCKEVENTS
> >
> > So there is no need to check CONFIG_GENERIC_CLOCKEVENTS if the
> > CONFIG_GENERIC_CLOCKEVENTS_BUILD is defined already.
>
> This is only true because nothing selects GENERIC_CLOCKEVENTS_BUILD
> directly, isn't it?

Thanks for pointing this out, your concern is valid, even though there
will be a warning message about the dependency corruption if the
GENERIC_CLOCKEVENTS_BUILD is directly selected while the
GENERIC_CLOCKEVENTS is N.

Thanks,
Feng

> So if we're being strict the patch explanation
> should mention that.
>
> (Maybe it's even better to simply state
> There is no need to check CONFIG_GENERIC_CLOCKEVENTS if
> CONFIG_GENERIC_CLOCKEVENTS_BUILD is defined.
>
> This prepares [...]
>
> as that would tell us just enough.)
>
> > This prepares for the total removal of GENERIC_CLOCKEVENTS_BUILD.
>
>
> Paul Bolle
--
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/