public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* def_bool n
@ 2008-08-04 12:29 Jan Beulich
  2008-08-04 21:16 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2008-08-04 12:29 UTC (permalink / raw)
  To: mingo, Harvey Harrison, tglx, Roman Zippel, Nick Piggin; +Cc: linux-kernel

Could either of you clarify what the significance of such a construct
(encountered several times in arch/x86/Kconfig alone) is?

At first, I noticed it only with GENERIC_LOCKBREAK (it is my
understanding that this block can go away entirely), but then realized
that with the bool->def_bool conversion this was introduced in various
other places (where "default n" was used before, which seems as
pointless a statement). Am I missing something?

Thanks, Jan



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: def_bool n
  2008-08-04 12:29 def_bool n Jan Beulich
@ 2008-08-04 21:16 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-08-04 21:16 UTC (permalink / raw)
  To: Jan Beulich
  Cc: mingo, Harvey Harrison, tglx, Roman Zippel, Nick Piggin,
	linux-kernel

On Mon, Aug 04, 2008 at 01:29:06PM +0100, Jan Beulich wrote:
> Could either of you clarify what the significance of such a construct
> (encountered several times in arch/x86/Kconfig alone) is?
> 
> At first, I noticed it only with GENERIC_LOCKBREAK (it is my
> understanding that this block can go away entirely), but then realized
> that with the bool->def_bool conversion this was introduced in various
> other places (where "default n" was used before, which seems as
> pointless a statement). Am I missing something?

No.

arch/x86/Kconfig:
config GENERIC_LOCKBREAK
        def_bool n

I assume this is solely to document that x86 does
NOT use GENERIC_LOCKBREAK as it serves no other purpose.

Notice that we may see:

init/Kconfig:
config FOO
	def_bool y

arch/$ARCH/Kconfig:
config FOO
	def_bool n

And this will result in setting FOO to the last seen value.
All the HAVE_* stuff is btw to avoid such double definition
of a config symbol.

GENERIC_LOCKBREAK is another candidate.

	Sam

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-04 21:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04 12:29 def_bool n Jan Beulich
2008-08-04 21:16 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox