Home Home > GIT Browse > stable
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-08-16 22:01:45 +0200
committerJiri Slaby <jslaby@suse.cz>2019-08-16 22:25:10 +0200
commit3ea08e63ffd77ef346d52ef29df6646e6fce2ae0 (patch)
tree2968cd57c19eb5b2d66c739b824990c3b38f9d86
parentfc241b69a89d1a0e4263a0b877d08093b6474260 (diff)
gen_compile_commands: lower the entry count threshold
-rw-r--r--patches.kernel.org/5.2.9-117-gen_compile_commands-lower-the-entry-count-thre.patch41
-rw-r--r--series.conf1
2 files changed, 42 insertions, 0 deletions
diff --git a/patches.kernel.org/5.2.9-117-gen_compile_commands-lower-the-entry-count-thre.patch b/patches.kernel.org/5.2.9-117-gen_compile_commands-lower-the-entry-count-thre.patch
new file mode 100644
index 0000000000..9bb71af6dd
--- /dev/null
+++ b/patches.kernel.org/5.2.9-117-gen_compile_commands-lower-the-entry-count-thre.patch
@@ -0,0 +1,41 @@
+From: Masahiro Yamada <yamada.masahiro@socionext.com>
+Date: Sat, 27 Jul 2019 12:01:10 +0900
+Subject: [PATCH] gen_compile_commands: lower the entry count threshold
+References: bnc#1012628
+Patch-mainline: 5.2.9
+Git-commit: cb36955a5569f1ff17a42ae93264ef391c013a97
+
+[ Upstream commit cb36955a5569f1ff17a42ae93264ef391c013a97 ]
+
+Running gen_compile_commands.py after building the kernel with
+allnoconfig gave this:
+
+$ ./scripts/gen_compile_commands.py
+WARNING: Found 449 entries. Have you compiled the kernel?
+
+Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+Signed-off-by: Jiri Slaby <jslaby@suse.cz>
+---
+ scripts/gen_compile_commands.py | 4 ++--
+ 1 file 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():
+--
+2.22.0
+
diff --git a/series.conf b/series.conf
index 0a34b1ce6a..af8b39e033 100644
--- a/series.conf
+++ b/series.conf
@@ -1137,6 +1137,7 @@
patches.kernel.org/5.2.9-114-perf-x86-Apply-more-accurate-check-on-hyperviso.patch
patches.kernel.org/5.2.9-115-perf-core-Fix-creating-kernel-counters-for-PMUs.patch
patches.kernel.org/5.2.9-116-s390-dma-provide-proper-ARCH_ZONE_DMA_BITS-valu.patch
+ patches.kernel.org/5.2.9-117-gen_compile_commands-lower-the-entry-count-thre.patch
########################################################
# Build fixes that apply to the vanilla kernel too.