From patchwork Sat Jul 27 03:01:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 169936 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp816921ilk; Fri, 26 Jul 2019 20:01:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDzsArTeEqrBQ1WUlCNQVwplfQ97/TCryp1vaips2FEf5WSdJFLL4kBtVpHLrbeP2Veq2Z X-Received: by 2002:a63:5459:: with SMTP id e25mr29085789pgm.366.1564196498949; Fri, 26 Jul 2019 20:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564196498; cv=none; d=google.com; s=arc-20160816; b=TwgABdYvxRQwEcrI6VpA9LTrtS1nMOQeoJynzOA9VqK9jFP33bYd6aLKpfcnk2pctA x+uPP6yfVs9LTCkjBkQmzC4IyckDBdLtxAE3bPsbpvvrujrC1pcPm29JXYNNKlr9ETxt 4ht76G+V3H0mWZKJ0ksTnWaB4IrM+9KYSgOYHQ5XptmHKUuiZgp8ySEkljAO2YQfNJKw GiRoe31V2T7U8x/hMht58ILkcBCnHbS+iR2BU0/VTIuDFigzxQTgVHSb1arDzjl68H8m Nju+67nVeCZnS+V2JDUmh7lrE4WznMuuKi6ztT74JoYlrt/XieeYGhGzhnTX+T7D25OE ebow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=UNyfgzuhf7SSHm0jA4hur0Fz0ys04Oa0KDkTYVtSEDc=; b=K9/wL+i0R8R1m1Ha5SgR04YFzYediPNZzJs7VDyurl2b4q1p4Mx8Xv8ERJChD8OW2h aeXE80sNY4S8Bo7BOUMgHhS/gSoMN+zrJtkq+88nZ4JlgHNQxTFYbm3IfKXXQ5Cp3b3K zeEw1iqQXz4ukoerPx2TsRiSmSeitNmuTCMJqBMKhoQ4JqA8KL62BGhdS0XvtAyWJIhO FPpK2x5j3DjmLBUXJAYqpHMx++EnG4H2je+0AgGlT+SIvrnnfrfi2x+2EDhx3jQIW31O z82AA4friH4Ok3ysf8uQQjdNptmo6brguaEaGd9q0I3SE5nEOwuauYsby0eAAs1moNCg ceHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="WHk1dk/G"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si18923833pls.183.2019.07.26.20.01.38; Fri, 26 Jul 2019 20:01:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="WHk1dk/G"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727630AbfG0DBg (ORCPT + 29 others); Fri, 26 Jul 2019 23:01:36 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:53478 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726184AbfG0DBg (ORCPT ); Fri, 26 Jul 2019 23:01:36 -0400 Received: from grover.flets-west.jp (softbank126026094249.bbtec.net [126.26.94.249]) (authenticated) by conuserg-11.nifty.com with ESMTP id x6R31DYB001215; Sat, 27 Jul 2019 12:01:13 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x6R31DYB001215 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1564196474; bh=UNyfgzuhf7SSHm0jA4hur0Fz0ys04Oa0KDkTYVtSEDc=; h=From:To:Cc:Subject:Date:From; b=WHk1dk/GTv4oJrrpZoJeX5dy1YFcWYpAJW1ulCm0lYFF8toiGwx+fPiC5jqVv834j 4GeuXH2BvQBaV1i0Xf9HWctpmJA+ZdHnJ5sNNQ+LgVXSEZ7jomflqtnLaBrvb2BOs9 iveJyyMnWFKSe8hrfLHQz0ifZ/OZZFFVF65J+pjzPIfNmDHCiBf4K0+oPX28iiGiNp Z30nvzUK84jxzruInW/odLhB3q/axhMHBRD4OnKGSk/ZBbm+KHrkeWcFCEQhHJvHCy 8WjknL9NDZsW5qgaTrBsfWYBBbdKU3+1AwCxI+vdkjR2f1JdkYi0KZgEYZd5M55k9F 41s8UotmvEvPA== X-Nifty-SrcIP: [126.26.94.249] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Tom Roeder , Nick Desaulniers , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] gen_compile_commands: lower the entry count threshold Date: Sat, 27 Jul 2019 12:01:10 +0900 Message-Id: <20190727030110.17208-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Running gen_compile_commands.py after building with allnoconfig gave this: $ ./scripts/gen_compile_commands.py WARNING: Found 449 entries. Have you compiled the kernel? Signed-off-by: Masahiro Yamada --- scripts/gen_compile_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: Tom Roeder Acked-by: Nick Desaulniers 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():