<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/Makefile, branch v4.19.68</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.19.68</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.19.68'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2019-08-25T08:48:06Z</updated>
<entry>
<title>Linux 4.19.68</title>
<updated>2019-08-25T08:48:06Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-08-25T08:48:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=def4c11b31312777a8db1f1083e0d4bc6c9bbef0'/>
<id>urn:sha1:def4c11b31312777a8db1f1083e0d4bc6c9bbef0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 4.19.67</title>
<updated>2019-08-16T08:12:54Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-08-16T08:12:54Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a5aa80588fcd5520ece36121c41b7d8e72245e33'/>
<id>urn:sha1:a5aa80588fcd5520ece36121c41b7d8e72245e33</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 4.19.66</title>
<updated>2019-08-09T15:52:35Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-08-09T15:52:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=893af1c79e42e53af0da22165b46eea135af0613'/>
<id>urn:sha1:893af1c79e42e53af0da22165b46eea135af0613</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 4.19.65</title>
<updated>2019-08-06T17:06:58Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-08-06T17:06:58Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65'/>
<id>urn:sha1:cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kbuild: initialize CLANG_FLAGS correctly in the top Makefile</title>
<updated>2019-08-06T17:06:53Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-07-29T09:15:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4c5a442561e86933b656b5357da43c5967f5c91f'/>
<id>urn:sha1:4c5a442561e86933b656b5357da43c5967f5c91f</id>
<content type='text'>
commit 5241ab4cf42d3a93b933b55d3d53f43049081fa1 upstream.

CLANG_FLAGS is initialized by the following line:

  CLANG_FLAGS     := --target=$(notdir $(CROSS_COMPILE:%-=%))

..., which is run only when CROSS_COMPILE is set.

Some build targets (bindeb-pkg etc.) recurse to the top Makefile.

When you build the kernel with Clang but without CROSS_COMPILE,
the same compiler flags such as -no-integrated-as are accumulated
into CLANG_FLAGS.

If you run 'make CC=clang' and then 'make CC=clang bindeb-pkg',
Kbuild will recompile everything needlessly due to the build command
change.

Fix this by correctly initializing CLANG_FLAGS.

Fixes: 238bcbc4e07f ("kbuild: consolidate Clang compiler flags")
Cc: &lt;stable@vger.kernel.org&gt; # v5.0+
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Reviewed-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Acked-by: Nick Desaulniers &lt;ndesaulniers@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Linux 4.19.64</title>
<updated>2019-08-04T07:30:58Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-08-04T07:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b3060a1a313ff7a545d658378f62fe9c250acdee'/>
<id>urn:sha1:b3060a1a313ff7a545d658378f62fe9c250acdee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 4.19.63</title>
<updated>2019-07-31T05:27:12Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-07-31T05:27:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=9a9de33a9dfaaf6628d63c56d58ea5cbfe707739'/>
<id>urn:sha1:9a9de33a9dfaaf6628d63c56d58ea5cbfe707739</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS</title>
<updated>2019-07-31T05:27:02Z</updated>
<author>
<name>Nathan Chancellor</name>
<email>natechancellor@gmail.com</email>
</author>
<published>2019-06-11T18:43:31Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=27f2335e1440128eb53ea2dacfc9e685cfa587aa'/>
<id>urn:sha1:27f2335e1440128eb53ea2dacfc9e685cfa587aa</id>
<content type='text'>
[ Upstream commit 589834b3a0097a4908f4112eac0ca2feb486fa32 ]

In commit ebcc5928c5d9 ("arm64: Silence gcc warnings about arch ABI
drift"), the arm64 Makefile added -Wno-psabi to KBUILD_CFLAGS, which is
a GCC only option so clang rightfully complains:

warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option]

https://clang.llvm.org/docs/DiagnosticsReference.html#wunknown-warning-option

However, by default, this is merely a warning so the build happily goes
on with a slew of these warnings in the process.

Commit c3f0d0bc5b01 ("kbuild, LLVMLinux: Add -Werror to cc-option to
support clang") worked around this behavior in cc-option by adding
-Werror so that unknown flags cause an error. However, this all happens
silently and when an unknown flag is added to the build unconditionally
like -Wno-psabi, cc-option will always fail because there is always an
unknown flag in the list of flags. This manifested as link time failures
in the arm64 libstub because -fno-stack-protector didn't get added to
KBUILD_CFLAGS.

To avoid these weird cryptic failures in the future, make clang behave
like gcc and immediately error when it encounters an unknown flag by
adding -Werror=unknown-warning-option to CLANG_FLAGS. This can be added
unconditionally for clang because it is supported by at least 3.0.0,
according to godbolt [1] and 4.0.0, according to its documentation [2],
which is far earlier than we typically support.

[1]: https://godbolt.org/z/7F7rm3
[2]: https://releases.llvm.org/4.0.0/tools/clang/docs/DiagnosticsReference.html#wunknown-warning-option

Link: https://github.com/ClangBuiltLinux/linux/issues/511
Link: https://github.com/ClangBuiltLinux/linux/issues/517
Suggested-by: Peter Smith &lt;peter.smith@linaro.org&gt;
Signed-off-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Tested-by: Nick Desaulniers &lt;ndesaulniers@google.com&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>Linux 4.19.62</title>
<updated>2019-07-28T06:29:30Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-07-28T06:29:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=64f4694072aa4ac23eb9ad2feeb0a178d2a054da'/>
<id>urn:sha1:64f4694072aa4ac23eb9ad2feeb0a178d2a054da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 4.19.61</title>
<updated>2019-07-26T07:14:31Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-07-26T07:14:31Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7250956f6eafc6edf2ad9a1cccaffb7f16c7b38d'/>
<id>urn:sha1:7250956f6eafc6edf2ad9a1cccaffb7f16c7b38d</id>
<content type='text'>
</content>
</entry>
</feed>
