Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp805426pxb; Tue, 14 Sep 2021 09:05:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNTLyuJwY3nYRp/HrISJa6UXvJJZpyRSbiGQ+y8mVCuCslXlP+yhmngnv4pi/jqwrDYZa7 X-Received: by 2002:a05:6512:3e15:: with SMTP id i21mr13525009lfv.273.1631635534183; Tue, 14 Sep 2021 09:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631635534; cv=none; d=google.com; s=arc-20160816; b=l0UT8WvFsKUtC25q25KSPyBLCJgIBQDw3bI/MFfoiUwEDs+NMJPI1qNtpeq6DtcUVN Xvjot/N/RYtyzEQHnx3cgKlC/CDMed1ngVNdwaUHyqt+fWKGkjM5bEHlmzKtTnI1VNKC zAlw7P4Y13G8ZWZItAUSOTuFXIBPaPpLX5F0YUFk2s2o1US4rgVoNfJM8IvKQJFEykG9 hip9qWN8LJRx8jDWnz8zFRMk/0HNblfaYNDX7ZZvlJXTC3ZwNlYDA4vCdqTVDcwqh+4Q 1CWsdsb7nvABcLnChFhdLR8hpFwmDbH67uQRdgNU3ONkRkbAMNNJ0h7YP9PO+YMqxhug 5THw== 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; bh=O7o8nytLXMUXQdmXcn0J+cx6AmEuTmtKjrOwXucFFVw=; b=YiXhLpWIG1CzINGTQMiiocYkGFu1gswTYqsFhwqwj9+fy7Z+4PkxLjkBb/ch2g3/pP 6+jSk8kulp6YrJs28cvJV7W3ui+5/huax9Kchw1MfT0UEPx+Tdh0T+0XvSWnW9BBQ1Rr 4LAJy/rNep7R+jIkzao3v5SaiWt7C3HFNjgVMoL2e0glTVe294TgLkGs90mQ0smpUO7G iDJygSvxew2M2wwBsWPoFqqo5yZF/+WZn7+R6Z4Flnv+HS+PRREblOR4otouD8JgmOKr wcSnHodwRvORv3c9hLUQ9b6Fe1tO661hBsFw0TfhYZinsKfYbNZIdOWd29pesxGBSHPp 5k7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=V9DkA3Yx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si9656801lfr.491.2021.09.14.09.05.05; Tue, 14 Sep 2021 09:05:34 -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=@google.com header.s=20210112 header.b=V9DkA3Yx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235235AbhINQDA (ORCPT + 99 others); Tue, 14 Sep 2021 12:03:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235253AbhINQCs (ORCPT ); Tue, 14 Sep 2021 12:02:48 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75E92C061762 for ; Tue, 14 Sep 2021 09:01:30 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id x27so29899865lfu.5 for ; Tue, 14 Sep 2021 09:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O7o8nytLXMUXQdmXcn0J+cx6AmEuTmtKjrOwXucFFVw=; b=V9DkA3YxNFNKt+kZfIU6UYrbnjxqTVpU5jxLXsh+y7SsxT3fJ0JPgfzuoszBZZZtTF jksmWVGYCq05qzNmFTHTCJ4xcvTQvUtqU1RFlAeKMSohHNvkuV1h+llPH9kBRWDHtj/D YVV2qWwx2D8qnjaPYa3v/ADQKFRZwfamoKYegxKGfl6UwF4LF8Mu3e4pIREZ7ee8h3/l Wawh0vASCAtz0qH+oEMOx1Uabk4pngW0LUghGESdC/F0a+Yph5g9p/bsTqMU4LDEm1EG LJUY7DprzgF9dQ/2pg0hOjZZILp1WIOVJ36rDc5THVEPyPjKCY78FzBo7JvfKxIBnH70 79RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O7o8nytLXMUXQdmXcn0J+cx6AmEuTmtKjrOwXucFFVw=; b=i2XHkTEoAwxzf28IdtRyZ+aOzqGIR/GMnJrlhTu9ZV94pVRhC7EZEY4TOzxtw4SWu5 E8OU4RL5QioHvIOadg8IcuJQj4iDtC2Q/xGpOZBiHNeod+HiDDz0wDSctn3iGlrbIoM4 RDi4s2ei8vLmXdOBCSVew+Bjxfy+HGyFNY2Q+Sciza70HgDYzlbZxdJgRQmIUVakNa1J wS7Q+ggk/RmIGwTTNNcx4ge8GvvqlbszNmMMDvZBuCe+UllI/nni5AzTA+duwxjKiVfE 6TvY27G5Xzu+yHzOa00bEgOWxo8IwvOq9htvkgHBJO0zzgSb2SDMe4CzL3n24ob+qMqg hyGA== X-Gm-Message-State: AOAM530QZOoYaRUvRir8rJuqGQBwm3vm8RQWBvjtcQ0FKkN+g0Y7gtg5 m/wyOG/D3SRgltemiiDnmD33NRppcpNA+RpQ3Axu7w== X-Received: by 2002:a05:6512:3b9e:: with SMTP id g30mr13372286lfv.651.1631635288279; Tue, 14 Sep 2021 09:01:28 -0700 (PDT) MIME-Version: 1.0 References: <20210914154441.1726853-1-andreas@rammhold.de> In-Reply-To: <20210914154441.1726853-1-andreas@rammhold.de> From: Nick Desaulniers Date: Tue, 14 Sep 2021 09:01:16 -0700 Message-ID: Subject: Re: [PATCH] gen_compile_commands: add missing sys import To: andreas@rammhold.de Cc: Nathan Chancellor , llvm@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 8:44 AM wrote: > > From: Andreas Rammhold > > The sys.exit was being used at multiple locations within the script but > never imported. This lead to the script exiting with a error instead of > with the nicely formatted (useful) error output. > > Signed-off-by: Andreas Rammhold Hi Andreas, Thanks for the patch. Someone beat you to the punch though: https://lore.kernel.org/lkml/20210908032847.18683-1-kortanzh@gmail.com/. This is good; it means folks are playing with this. :) > --- > 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 0033eedce003e..1d1bde1fd45eb 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.32.0 > -- Thanks, ~Nick Desaulniers