Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kortan and committed by
Masahiro Yamada
ec783c7c aa0f5ea1

+1
+1
scripts/clang-tools/gen_compile_commands.py
··· 13 13 import os 14 14 import re 15 15 import subprocess 16 + import sys 16 17 17 18 _DEFAULT_OUTPUT = 'compile_commands.json' 18 19 _DEFAULT_LOG_LEVEL = 'WARNING'