gen_compile_commands: fix missing 'sys' package
authorKortan <kortanzh@gmail.com>
Wed, 8 Sep 2021 03:28:48 +0000 (11:28 +0800)
committerDom Cobley <popcornmix@gmail.com>
Thu, 14 Oct 2021 11:32:55 +0000 (12:32 +0100)
commit50e687535a82a8ec90351ee5d583e4738447ae78
tree5e52c6cd4f372810c4554fcbbaf582ceb017628c
parentfa79ee3220391cee61e507223ee5e0a8f53a0388
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