]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - Makefile
Revert "kbuild: use -Oz instead of -Os when using clang"
[mirror_ubuntu-bionic-kernel.git] / Makefile
index fe0a66d0ff26b708e42b9a3bb618eb2a5f32b32f..a80e02d9ad1b5ee81b928bf9f020ee3f9ad65f22 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -681,8 +681,7 @@ KBUILD_CFLAGS       += $(call cc-disable-warning, int-in-bool-context)
 KBUILD_CFLAGS  += $(call cc-disable-warning, attribute-alias)
 
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
-KBUILD_CFLAGS  += $(call cc-option,-Oz,-Os)
-KBUILD_CFLAGS  += $(call cc-disable-warning,maybe-uninitialized,)
+KBUILD_CFLAGS  += -Os $(call cc-disable-warning,maybe-uninitialized,)
 else
 ifdef CONFIG_PROFILE_ALL_BRANCHES
 KBUILD_CFLAGS  += -O2 $(call cc-disable-warning,maybe-uninitialized,)