projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa0f5ea
)
gen_compile_commands: fix missing 'sys' package
author
Kortan
<kortanzh@gmail.com>
Wed, 8 Sep 2021 03:28:48 +0000
(11:28 +0800)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Sun, 19 Sep 2021 01:13:03 +0000
(10:13 +0900)
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>
scripts/clang-tools/gen_compile_commands.py
patch
|
blob
|
history
diff --git
a/scripts/clang-tools/gen_compile_commands.py
b/scripts/clang-tools/gen_compile_commands.py
index
0033eed
..
1d1bde1
100755
(executable)
--- 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'