From: Kortan Date: Wed, 8 Sep 2021 03:28:48 +0000 (+0800) Subject: gen_compile_commands: fix missing 'sys' package X-Git-Tag: v5.15-rc2~6^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ec783c7cb2495c5a3b8ca10db8056d43c528f940;p=users%2Fdwmw2%2Flinux.git gen_compile_commands: fix missing 'sys' package 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 Reviewed-by: Nathan Chancellor Signed-off-by: Masahiro Yamada --- diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py index 0033eedce003e..1d1bde1fd45eb 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'