summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKortan <kortanzh@gmail.com>2021-09-08 05:28:48 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2021-09-19 03:13:03 +0200
commitec783c7cb2495c5a3b8ca10db8056d43c528f940 (patch)
tree27fd3a1267310517702638f2502e671ee0da44f6 /scripts
parentcheckkconfigsymbols.py: Remove skipping of help lines in parse_kconfig_file (diff)
downloadlinux-ec783c7cb2495c5a3b8ca10db8056d43c528f940.tar.xz
linux-ec783c7cb2495c5a3b8ca10db8056d43c528f940.zip
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 <kortanzh@gmail.com> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clang-tools/gen_compile_commands.py1
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 0033eedce003..1d1bde1fd45e 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'