summaryrefslogtreecommitdiffstats
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorLinus Torvalds2019-07-28 19:35:04 +0200
committerLinus Torvalds2019-07-28 19:35:04 +0200
commit8e61ea11c23b108c8ce062f791dfa737896da346 (patch)
tree18c284e15a6ef26d56cfb0fdb152efa9c9014712 /scripts/gen_compile_commands.py
parentMerge tag 'char-misc-5.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
parentkbuild: remove unused single-used-m (diff)
downloadkernel-qcow2-linux-8e61ea11c23b108c8ce062f791dfa737896da346.tar.gz
kernel-qcow2-linux-8e61ea11c23b108c8ce062f791dfa737896da346.tar.xz
kernel-qcow2-linux-8e61ea11c23b108c8ce062f791dfa737896da346.zip
Merge tag 'kbuild-fixes-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - add compile_commands.json to .gitignore - fix false-positive warning from gen_compile_commands.py after allnoconfig build - remove unused code * tag 'kbuild-fixes-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: kbuild: remove unused single-used-m gen_compile_commands: lower the entry count threshold .gitignore: Add compilation database file kbuild: remove unused objectify macro
Diffstat (limited to 'scripts/gen_compile_commands.py')
-rwxr-xr-xscripts/gen_compile_commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen_compile_commands.py b/scripts/gen_compile_commands.py
index 7915823b92a5..c458696ef3a7 100755
--- a/scripts/gen_compile_commands.py
+++ b/scripts/gen_compile_commands.py
@@ -21,9 +21,9 @@ _LINE_PATTERN = r'^cmd_[^ ]*\.o := (.* )([^ ]*\.c)$'
_VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
# A kernel build generally has over 2000 entries in its compile_commands.json
-# database. If this code finds 500 or fewer, then warn the user that they might
+# database. If this code finds 300 or fewer, then warn the user that they might
# not have all the .cmd files, and they might need to compile the kernel.
-_LOW_COUNT_THRESHOLD = 500
+_LOW_COUNT_THRESHOLD = 300
def parse_arguments():