mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
gen_compile_commands: fix missing 'sys' package
commitec783c7cb2upstream. We need to import the 'sys' package since the script has called sys.exit() method. Fixes:6ad7cbc015("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>
This commit is contained in:
parent
983ef86629
commit
7843861e21
|
|
@ -13,6 +13,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
_DEFAULT_OUTPUT = 'compile_commands.json'
|
_DEFAULT_OUTPUT = 'compile_commands.json'
|
||||||
_DEFAULT_LOG_LEVEL = 'WARNING'
|
_DEFAULT_LOG_LEVEL = 'WARNING'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user