Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp790091pxb; Tue, 14 Sep 2021 08:47:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdLrS5x759c5aXtu7k7VYOpSLO+NEwBNaZrwoc/NLhAR38h13TayRu6yPr8NZmvMZna4/3 X-Received: by 2002:a05:6512:32c7:: with SMTP id f7mr12998090lfg.86.1631634445672; Tue, 14 Sep 2021 08:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631634445; cv=none; d=google.com; s=arc-20160816; b=f1MgqimVLCKEWGm35Vni4RIZ7AsXCgv2C2HhHr0w0nwBilHiYIAjuv6E2w8cx3Lllg In51tb1vxKLqsqjrQzvoA8NZ7HD5Od1adc6yLmYq2ntF8VPFzn8yKGw7/3s1iBQFQeu8 gM490RZyU1JTgw4eeoSY2yqvv/0E20pkLTEGXsF2sqO1n82tTQcHJtdOOpI1fgyFKKY1 ia0twZKUt2D6JRaRXDcaxgNAlT421tSdO8HXhfxmDhvViMFH/KZl1MmxbBSLmhAdssb8 6yGKqId32teGhwf7rKiYgE08shQQGCVVaF2LbK9EDpdzwVYgqIT3lHBbTNELV/ireq9T kkQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xB5A2oEf3U8Ifr6DwVPVPmZXqJzCQ/TxKjqPJnOVvSw=; b=GctHq6uVkGYocrSSSGjlswXi25pJ3bQ4U7LKgXxKwppDplHRw3zyfKcc4DB9Iq0sOO LLyG0HfnYXewq5JaEoPOQARo6owmvzr92mMEBLjpU6+OUlwPuvrFoOKso0wfaAmpt65N c4Yw7R5N8YR6IsfzmGhTR3NRKKFycffR0zgc3+OjYEsfNJV3HtK1j4neTjWCWOy1DjHC 9QELVPqpZ836ydrBXY+IioAoWuYRjrnKnxeI/Thd9R0BCtFms7Mm5rDR4Do9Dc3i0hFZ dsbYbC493wqUOsH4FCdppiOHyiuKzbiWpp31AEqKRkmev93kgc2AohcG+DRxnWa69NRu Z31w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rammhold-de.20150623.gappssmtp.com header.s=20150623 header.b=YEGAM5Ez; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si12766181ljh.249.2021.09.14.08.46.56; Tue, 14 Sep 2021 08:47:25 -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=@rammhold-de.20150623.gappssmtp.com header.s=20150623 header.b=YEGAM5Ez; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234415AbhINPqL (ORCPT + 99 others); Tue, 14 Sep 2021 11:46:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231966AbhINPqK (ORCPT ); Tue, 14 Sep 2021 11:46:10 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CBC1C061574 for ; Tue, 14 Sep 2021 08:44:53 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id u16so20978837wrn.5 for ; Tue, 14 Sep 2021 08:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rammhold-de.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xB5A2oEf3U8Ifr6DwVPVPmZXqJzCQ/TxKjqPJnOVvSw=; b=YEGAM5EzV/rMOgfYuWLuKDLUs2BwsuiLV1yNTyqJVb4AfvERwA8Ct4jCuJSKERT8Ze iTg6A14ro/tZbdpWiKYTcyRvjklT801kLYuQv5jVr1sJreT7aUp7h8YpXcvR0KanJISi JKWHr64A4Trz1RTCFNQ7o+k1E0UcOrNuNpo/gjPDdnoOCfoZRF/J1cBLeEdNm4YFyOxn b+06TZB92Yy4w5OhIRdxX+l0MayFSGMYWa0sIjQPlAwbMyIKQt5Uisvbn6e+oimQ769+ Oq95AGHyOV3r+mi3CI0F+wRNNaR4ATaXNJ4EzjDe4umiDjcFIOwt2NiKcGed9N/1+DfG sZFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xB5A2oEf3U8Ifr6DwVPVPmZXqJzCQ/TxKjqPJnOVvSw=; b=Cr8Eu9g3mXA8qQ9rvFlylI7Cos3IECcz9RcIgFxhMuf0xcTpavIfjMIJwEuKl6Ix3+ XQHr/hqOKEaVdkiWdl/p+23f8OwGE1nJp/N9WFqgVUQ8/Baxc5x5Y+RIc8bbUDRAm0T/ 7kmx86QfGOojQjdLs+Lga4A9OHIZNn7CiElboO955c1/QC3FnuqcPndCrwjlsjybnBNO 5HRJFwixKFFkLqYlQ3GyUS72LaShqoRq2Ori7U3RMrSDeyDWudWV/BYl6QAApIgA6usp K7fmFnvcuaLHXpS7okuUg6A22EJdkFVPdywoknhNPXwIPiRDNTEa67R0n28kN4MyDRnt 6shg== X-Gm-Message-State: AOAM531oBzQTY28oo6X8RA6pSawPlJ/KFujf8utgcKZHViQ5j3t0HYp2 +Z8M/Kp12MevVZ5xV9aonABc2wWrWueC/g== X-Received: by 2002:adf:f805:: with SMTP id s5mr321672wrp.259.1631634291752; Tue, 14 Sep 2021 08:44:51 -0700 (PDT) Received: from localhost ([2a00:e67:5c9:a:2e15:c474:2ef7:bc26]) by smtp.gmail.com with ESMTPSA id j17sm10632383wrh.67.2021.09.14.08.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 08:44:51 -0700 (PDT) From: andreas@rammhold.de To: Nathan Chancellor , Nick Desaulniers Cc: Andreas Rammhold , llvm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] gen_compile_commands: add missing sys import Date: Tue, 14 Sep 2021 17:44:40 +0200 Message-Id: <20210914154441.1726853-1-andreas@rammhold.de> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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