Skip to content

Commit 2cc3ce2

Browse files
ulfalizermasahir0y
authored andcommitted
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>
1 parent 9904041 commit 2cc3ce2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ endif
10331033

10341034
choice
10351035
prompt "Compiler optimization level"
1036-
default CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
1036+
default CC_OPTIMIZE_FOR_PERFORMANCE
10371037

10381038
config CC_OPTIMIZE_FOR_PERFORMANCE
10391039
bool "Optimize for performance"

0 commit comments

Comments
 (0)