Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfecbec8 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Sam Ravnborg
Browse files

kconifg: 'select' considered less evil



While select should be used with care, it is not actually evil.

Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent beda8ae7
Loading
Loading
Loading
Loading
+9 −8
Original line number Original line Diff line number Diff line
@@ -104,14 +104,15 @@ applicable everywhere (see syntax).
  Reverse dependencies can only be used with boolean or tristate
  Reverse dependencies can only be used with boolean or tristate
  symbols.
  symbols.
  Note:
  Note:
	select is evil.... select will by brute force set a symbol
	select should be used with care. select will force
	equal to 'y' without visiting the dependencies. So abusing
	a symbol to a value without visiting the dependencies.
	select you are able to select a symbol FOO even if FOO depends
	By abusing select you are able to select a symbol FOO even
	on BAR that is not set. In general use select only for
	if FOO depends on BAR that is not set.
	non-visible symbols (no prompts anywhere) and for symbols with
	In general use select only for non-visible symbols
	no dependencies. That will limit the usefulness but on the
	(no prompts anywhere) and for symbols with no dependencies.
	other hand avoid the illegal configurations all over. kconfig
	That will limit the usefulness but on the other hand avoid
	should one day warn about such things.
	the illegal configurations all over.
	kconfig should one day warn about such things.


- numerical ranges: "range" <symbol> <symbol> ["if" <expr>]
- numerical ranges: "range" <symbol> <symbol> ["if" <expr>]
  This allows to limit the range of possible input values for int
  This allows to limit the range of possible input values for int