public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kconfig: report select on a depending option
@ 2010-03-18  9:21 Jan Engelhardt
  2010-03-18  9:31 ` Américo Wang
  2010-03-18 10:12 ` Michal Marek
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Engelhardt @ 2010-03-18  9:21 UTC (permalink / raw)
  To: Michal Marek; +Cc: Linux Kernel Mailing List

Hi,


With the following combination of Kconfig config options, I can select 
TEST_Z, which will select TEST_X, even if TEST_Y=n. It also allows for 
awkward situations like TEST_Y=M, TEST_X=y, TEST_Z=y, which would yield 
a link time error when X uses Y's symbols.
Is there a way to have such potential errors reported with kconfig?

config TEST_Y
	tristate "Y"

config TEST_X
	depends on Y
	tristate "X"

config TEST_Z
	select TEST_Y
	tristate "Z"

thanks,
Jan

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

end of thread, other threads:[~2010-03-18 10:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18  9:21 kconfig: report select on a depending option Jan Engelhardt
2010-03-18  9:31 ` Américo Wang
2010-03-18 10:12 ` Michal Marek

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