Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp417536pxb; Thu, 9 Sep 2021 04:06:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoBZWbIJZjWiaaYx9EVKwmyAB0Y2XRiC1Nj2y9YWlOvjLNW0njSZmVkGsaFPHCBLPTI6su X-Received: by 2002:a17:906:c1d0:: with SMTP id bw16mr2832721ejb.146.1631185578207; Thu, 09 Sep 2021 04:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631185578; cv=none; d=google.com; s=arc-20160816; b=hwOrXD/+JKg5I1JH79bC02QMArPBTdUPpwR8rtm72jSxLioyH/ANVt4FKdRqpT6/jK AoxClmIC1jEVKo0hnGO8NMJqnBLllqCh0EtvfLwJJPqtvRD0oODp9RFa0uNYbAniGNvI emApWRYdEw+RU8I2GGoN7VotmBXHrzzUgj76bdqr+0ju/zfXFTRVxq8+11RLKkJs8XhC YAx54cMOlNld/x1MvL9Cms4zB2JqW9Lhf5Rwi79kNm2NDW7v8t3sShH1+F2Ghz33H281 C9+TQjrwrUeERQx5tEASAHy+9I5vGxnGoUoIMaIIiw1RPAVdIb/cDIYC0rkYsjph0OHs IKsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=nZfFg/JwDacjaTOLCboRuBQ6A+RYt6dHwDsyrC1BjG0=; b=nnOTTKImO+plofSFPiOqUHIOoEkkUwRGUBG2YuODjkXmD5me5+Cvw2eC5WaQC64W72 tzzqC+VG1X4MiU944o09BHuvff3Nz+37sPPN/4ONm6wMiXKRHS0UrNttr/E8O/1eC86n An78I1+v0bt8eKlhDsXyFITq2Ww/Z4hDDTAGBuboQynnMsR6u/L8QNzjpfxsi6nNvUcH GHWlFOr3D57EWj6ndBcvm9ObbDbvA6D1DUuxZ6WlQT6S+CXhusQfVmdfZ0foRhEuKqrS O/Hvglxy0UTTEKzhbjTgI69E1Q+P29M0AZbIeI4HKN8+g1Wd3jKntOYgnoXgR6zwHf8K ZBsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gsGVGB59; 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 nd30si1613406ejc.717.2021.09.09.04.05.42; Thu, 09 Sep 2021 04:06:18 -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=@nifty.com header.s=dec2015msa header.b=gsGVGB59; 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 S234507AbhIILDO (ORCPT + 99 others); Thu, 9 Sep 2021 07:03:14 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:57718 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234216AbhIILDO (ORCPT ); Thu, 9 Sep 2021 07:03:14 -0400 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 189B1nr9024809; Thu, 9 Sep 2021 20:01:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 189B1nr9024809 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1631185310; bh=nZfFg/JwDacjaTOLCboRuBQ6A+RYt6dHwDsyrC1BjG0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gsGVGB59VhtqgkNoD6ckbHiPd97O406ngyVMGyakbRrILR6n1qazziSVIMrXNDwWP cdWp3nwXqvVKmOjMggDRFgUhQaylFu7n2tYV3Ug4jeY2aebw144sH+gCRew8HX39Jn 8pjUlF4jArb82Y6/x9bhetRQBXr/fk81pY8PVv7crBrnV70IHvT3gC72mae+sIX6cM hnBZyZRvs+a6GK4LKEISKv8ZkRJR60e74sS/DCmhqCCmwEhoNrRmJLQCBI0yIg2k7J pfqI3JdgdRcKIz7DU/slolyS+ZruWfiQizTWbHcDn3/Cio19Xu8oukTuVJZEjxdY7a kpv/xL9d47RmA== X-Nifty-SrcIP: [209.85.210.176] Received: by mail-pf1-f176.google.com with SMTP id m26so1454291pff.3; Thu, 09 Sep 2021 04:01:49 -0700 (PDT) X-Gm-Message-State: AOAM532lOqbxb0ebhVp8O9ns/Wcc+EJ9MNOhJyf19M3lADmzdHKdl5Cs kic/t/4i91gflZmEC1zqwbkuFxd7VhKDlO1ljwg= X-Received: by 2002:aa7:9e8d:0:b0:406:be8:2413 with SMTP id p13-20020aa79e8d000000b004060be82413mr2637188pfq.66.1631185309107; Thu, 09 Sep 2021 04:01:49 -0700 (PDT) MIME-Version: 1.0 References: <20210908032847.18683-1-kortanzh@gmail.com> In-Reply-To: From: Masahiro Yamada Date: Thu, 9 Sep 2021 20:01:11 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] gen_compile_commands: fix missing 'sys' package To: Nathan Chancellor Cc: Kortan , Nick Desaulniers , Linux Kbuild mailing list , llvm@lists.linux.dev, clang-built-linux , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 9, 2021 at 2:07 AM Nathan Chancellor wrote: > > 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 Applied to linux-kbuild with Fixes and Nathan's Reviewed-by. Thanks. > > --- > > 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 > > > > -- Best Regards Masahiro Yamada