diff options
author | Kortan <kortanzh@gmail.com> | 2021-09-08 06:28:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 13:27:58 +0300 |
commit | 7843861e214026bd867d19e832de10d16a52e757 (patch) | |
tree | 4813291e9584d418efd26c589a9da721271fb1b5 | |
parent | 983ef866291cc7e51f151cdea5a7c2fe36f632a3 (diff) | |
download | linux-7843861e214026bd867d19e832de10d16a52e757.tar.xz |
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>
-rwxr-xr-x | scripts/clang-tools/gen_compile_commands.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py index 8ddb5d099029..8bf55bb4f515 100755 --- a/scripts/clang-tools/gen_compile_commands.py +++ b/scripts/clang-tools/gen_compile_commands.py @@ -13,6 +13,7 @@ import logging import os import re import subprocess +import sys _DEFAULT_OUTPUT = 'compile_commands.json' _DEFAULT_LOG_LEVEL = 'WARNING' |