diff options
author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-03 19:53:26 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-07 07:08:05 -0400 |
commit | 2cc3ce24a9874451e6751a062cc2ae5040fd8bee (patch) | |
tree | 735ec3f8af675eb9007f24ccc3b5cb237bf43db9 | |
parent | 990404188581cba45937ebad24a4b1910a4ec568 (diff) |
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>
-rw-r--r-- | init/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig index 78cb2461012e..3c1faaa2af4a 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -1033,7 +1033,7 @@ endif | |||
1033 | 1033 | ||
1034 | choice | 1034 | choice |
1035 | prompt "Compiler optimization level" | 1035 | prompt "Compiler optimization level" |
1036 | default CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE | 1036 | default CC_OPTIMIZE_FOR_PERFORMANCE |
1037 | 1037 | ||
1038 | config CC_OPTIMIZE_FOR_PERFORMANCE | 1038 | config CC_OPTIMIZE_FOR_PERFORMANCE |
1039 | bool "Optimize for performance" | 1039 | bool "Optimize for performance" |