Skip to content

Commit

Permalink
gen_compile_commands: fix missing 'sys' package
Browse files Browse the repository at this point in the history
commit ec783c7 upstream.

We need to import the 'sys' package since the script has called
sys.exit() method.

Fixes: 6ad7cbc ("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>
  • Loading branch information
KortanZ authored and gregkh committed Sep 22, 2021
1 parent b566323 commit e8f84d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/clang-tools/gen_compile_commands.py
Expand Up @@ -13,6 +13,7 @@
import os
import re
import subprocess
import sys

_DEFAULT_OUTPUT = 'compile_commands.json'
_DEFAULT_LOG_LEVEL = 'WARNING'
Expand Down

0 comments on commit e8f84d2

Please sign in to comment.