gen_compile_commands: fix missing 'sys' package
authorKortan <kortanzh@gmail.com>
Wed, 8 Sep 2021 03:28:48 +0000 (11:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:27:58 +0000 (12:27 +0200)
commit7843861e214026bd867d19e832de10d16a52e757
tree4813291e9584d418efd26c589a9da721271fb1b5
parent983ef866291cc7e51f151cdea5a7c2fe36f632a3
gen_compile_commands: fix missing 'sys' package

commit ec783c7cb2495c5a3b8ca10db8056d43c528f940 upstream.

We need to import the 'sys' package since the script has called
sys.exit() method.

Fixes: 6ad7cbc01527 ("Makefile: Add clang-tidy and static analyzer support to makefile")
Signed-off-by: Kortan <kortanzh@gmail.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/clang-tools/gen_compile_commands.py