Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp697880pxb; Wed, 8 Sep 2021 10:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybPbDOEhZ0LjERJ7oSRrjBTHyVZSflU7je08dMysQYtHPPeEkpt35acB7B+gShlf9/VJm+ X-Received: by 2002:a17:906:114f:: with SMTP id i15mr938771eja.534.1631121109924; Wed, 08 Sep 2021 10:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631121109; cv=none; d=google.com; s=arc-20160816; b=u7yEDUbGDP/7+6gni/sWzKa9SusJzwYAlcUreYIVdwhdqQkrYtvyzKTHwWOM1q3q+e l4UrZrKWC6gR3RIJBVE5vQ4h0E0NizHj8HgtMyaHaKcw19788+HnkI2he++gYzlQpcZk Nd9KLA6ehouNkDQbYEHoCeh9SMBGjSmElH5qJYogbPZcSpwNvvfqUK6B9kdtbY0XEcSr tWFzM3eIKu2kCYxQDApyoeK8KMLWYdkvavpTNTtvYP0tBClUEGX7xWJO773yE/LBHSQc NapciIo/Se1eYiI6YaPs42Cgg5iTU3QZ602q5GPvh+TlgaTGocoSjx+RVE1ERe0a8GLa R6iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eEGI5OEfj1DMJJpHYlMmDK/oDCFx/kdMTwWW0feYK+o=; b=roohgaVq+jHTUMSlHFBClRtsRt+t/U5c5nrFQO1ON1YekSOSH9TTJTyI8ienAVe+0k 7Za6hNQKJPfC1uQGhzyaIhW8PI6bJU1zPmCXGExAglS0KvuCY97UWXDDw/BPxgtbi0cf eWJA4g3lCJrhLEp7xweTiCRON3E45lWnOVKj9c43GBJsEvVaedkg7iDIZQqECf3RG5Ms MTRezPzMfQvEpeKyM6GetWU4F3TIZlULncAzsE/iLUoulUHRHDzgqJoaM3p7W6qh1AJ3 6xlmzu3oPBz42WDYN7WE4uM/tavrIfzQPB320uZsusjqwKRjbruDG9IvdYv2iJN4NrFB 7Suw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mnwyjq5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si2644998edq.258.2021.09.08.10.11.23; Wed, 08 Sep 2021 10:11:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mnwyjq5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352403AbhIHRJD (ORCPT + 99 others); Wed, 8 Sep 2021 13:09:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:52822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350158AbhIHRJC (ORCPT ); Wed, 8 Sep 2021 13:09:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 34BDB61139; Wed, 8 Sep 2021 17:07:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631120874; bh=80AvqZOv2RZcZbeG+YgdxOHOj1vveJJVoxh9nrQ9MFY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mnwyjq5BW0zV7+7N3JPvf6PAUAeT/bhKnb04jCd4zUYdWPe3z6+bseg5+aFhz8Pp0 peGJih9WiWxGlRxxl//19cwYc21vHId1R+ckzCv2uTzH/xGcC3NQ7uMZ7dEpB7M9FK KU6gYmADQMF8/Hl0NkWzN5l1ohe4II+IJmgsV4R+He3AWPCH27UjjNf7fhAxxIS3LF 0owKopXTFG2f0NXAu6CmYAU5KYIaIl/io9CNrZrvnd2ZKKvQCEXLgIfulz3dAxyKLp aaKA7YXmtCZ2y1RG0z7mgCraIhk7kO5V8HjdMM6J5q20HD0T+aEoQb0Y65bj2/tZ2x fk24CIwOH7V+A== Date: Wed, 8 Sep 2021 10:07:48 -0700 From: Nathan Chancellor To: Kortan Cc: ndesaulniers@google.com, masahiroy@kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] gen_compile_commands: fix missing 'sys' package Message-ID: References: <20210908032847.18683-1-kortanzh@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210908032847.18683-1-kortanzh@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 08, 2021 at 11:28:48AM +0800, Kortan wrote: > We need to import the 'sys' package since the script has called > sys.exit() method. > > Signed-off-by: Kortan Thank you for making those changes! I should have mentioned that this probably warrants a Fixes: tag, which can be generated by running: $ git show -s --format='Fixes: %h ("%s")' 6ad7cbc01527223f3f92baac9b122f15651cf76b Fixes: 6ad7cbc01527 ("Makefile: Add clang-tidy and static analyzer support to makefile") as that was the patch that introduced this issue. I personally have a git alias for this as it comes up enough. $ git config --get alias.fixes show -s --format="Fixes: %h (\"%s\")" I do not think this warrants a v3, just something to keep in mind for the future. Fixes: 6ad7cbc01527 ("Makefile: Add clang-tidy and static analyzer support to makefile") Reviewed-by: Nathan Chancellor > --- > Changes v1 -> v2: > * Fix commit title. > * Improve commit message. > > scripts/clang-tools/gen_compile_commands.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py > index 0033eedce003..1d1bde1fd45e 100755 > --- 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' > -- > 2.33.0 > >