kbuild: use -Oz instead of -Os when using clang
authorBehan Webster <behanw@converseincode.com>
Tue, 28 Mar 2017 01:19:09 +0000 (18:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Nov 2018 07:20:35 +0000 (08:20 +0100)
commitd438cec0737451e3615c4665592b6df0858de41a
tree207683870024300ced84aaa35288aa95f3083891
parent14635231f81c94c2a820349a7b96d032cdc02494
kbuild: use -Oz instead of -Os when using clang

commit 6748cb3c299de1ffbe56733647b01dbcc398c419 upstream.

This generates smaller resulting object code when compiled with clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile