OSDN Git Service

kbuild: clang: fix build failures with sparse check
authorDavid Lin <dtwlin@google.com>
Fri, 20 Oct 2017 21:09:13 +0000 (14:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:07:02 +0000 (10:07 +0100)
commit3f46fe4a39fd0634abdd60294706aa005c6d8b0c
tree42fe87332f2ef3ef3fd026bc0c4ead50740f3c67
parentb098b0228598af3ca2fd02892c4b976185988e7d
kbuild: clang: fix build failures with sparse check

commit bb3f38c3c5b759163e09b9152629cc789731de47 upstream.

We should avoid using the space character when passing arguments to
clang, because static code analysis check tool such as sparse may
misinterpret the arguments followed by spaces as build targets hence
cause the build to fail.

Signed-off-by: David Lin <dtwlin@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
[nc: Backport to 4.9; adjust context]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile