kbuild: Fix optimization level choice default
authorUlf Magnusson <ulfalizer@gmail.com>
Tue, 3 Oct 2017 23:53:26 +0000 (01:53 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 7 Oct 2017 11:08:05 +0000 (20:08 +0900)
commit2cc3ce24a9874451e6751a062cc2ae5040fd8bee
tree735ec3f8af675eb9007f24ccc3b5cb237bf43db9
parent990404188581cba45937ebad24a4b1910a4ec568
kbuild: Fix optimization level choice default

The choice containing the CC_OPTIMIZE_FOR_PERFORMANCE symbol
accidentally added a "CONFIG_" prefix when trying to make it the
default, selecting an undefined symbol as the default.

The mistake is harmless here: Since the default symbol is not visible,
the choice falls back on using the visible symbol as the default
instead, which is CC_OPTIMIZE_FOR_PERFORMANCE, as intended.

A patch that makes Kconfig print a warning in this case has been
submitted separately:
http://www.spinics.net/lists/linux-kbuild/msg15566.html

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
init/Kconfig