Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp177977pxb; Tue, 7 Sep 2021 21:26:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy68S0dCaiPKrUr06/E3HKobh2CdMrFusyPNbu5NiVlWS7EfuWQIn7nrqQparmjP1jC2vyx X-Received: by 2002:a05:6e02:1c27:: with SMTP id m7mr1262222ilh.190.1631075203278; Tue, 07 Sep 2021 21:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631075203; cv=none; d=google.com; s=arc-20160816; b=dxJ+hspiavwzMMDc6wGCb4vXQ4dW8ME6TtLTovP5dYDh6D/YuUY0Gf7g9GXe496kQ4 RliRaYUu6d2L+jiOFLS888g6LRGb6kwdSE2pBJy6S8gKup5LHmTBRXcXLDoVTaGQvdQt KqAz98rifU6urn1pp1iIpTjEBzSwB9MvZWVaf4SvYmW8P0tCnPagFCBJGKVnxC13BIZt penk/KNBaXhqob3zKOKVCjqrItMq+GlzTL/N1bbm+JxSFoLAsZYGzOnEXC4frtjae4jJ pK/iCeB8O/vHjdSFX9oz3x4CEw4JHwxlMU7eO51FhemY2UHbSF/qazKd3Je/Hbt+kFDS jzKA== 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=YCmgiIqK/f2uj+2FIB5ZoM8EM/HSqIdCmUJnhQwVgP4=; b=aCi2Vz4ZUNNbbZWd2X4LCm6sdSX9ooNhBx/ne0AD8bqMh8aOsAXRpEWtxBPE6h7/2z iWdyFPopB0sEWUcJOM8594N5lsZI+i3LqZ6AZgTrxt03Q+ySxbY1EC8sde+ocya+nekp 2ntzRZQ0QrtQ6ImBgWo+e2l1yaveYazzYFI563mSL6lwaqMRNpebiZX0Rr4ifwAylECn kw1GQsjcZCgQUbHL/o36gdW1RdJ3CHvfrSXo+w1DT/uncOSTWmcg6kdzNfjBQa79a6oV KzZPQDr2h8ve3QrCUyQXcX2x3/fylfvh8rxYYvmleOT4rSnuVCM9q7WyghG2InDCauLl foeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dc9bzny1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si923248iot.52.2021.09.07.21.26.30; Tue, 07 Sep 2021 21:26:43 -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=@gmail.com header.s=20210112 header.b=dc9bzny1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236626AbhIHDbo (ORCPT + 99 others); Tue, 7 Sep 2021 23:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbhIHDbl (ORCPT ); Tue, 7 Sep 2021 23:31:41 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3377C061575; Tue, 7 Sep 2021 20:30:33 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id oc9so655955pjb.4; Tue, 07 Sep 2021 20:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YCmgiIqK/f2uj+2FIB5ZoM8EM/HSqIdCmUJnhQwVgP4=; b=dc9bzny1WKO1FGe6huTtpTsHefn+LffqFdPXd+y+4gPjwBzud1kpZ5EhiyAEpYrN/H QhI4DSxGtfB7pncHLAAHSOveW8GqDwwrhhHu4VAOdyznAyKYfG84FLJ5mI9xCXY2UBmx lg169RpruRjntuPFhDy/PF7n0qZmtEcuoUWQCYSgh1a9d1sh4Sjl7tdv16M9Hft2CMmV mR/Q9u9ERoCuTNyN8fhVC++xgTt0aGbaSGbC0aD9xcxmFKa0N9fAnPpARPH5U3WQ5AjH xbeXqzLxh18Zup4wtDo2V+i/gTx5S1LTGhSMXSHeWZO4O+4ng75XAINJvMXT6RpQfz28 qXpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YCmgiIqK/f2uj+2FIB5ZoM8EM/HSqIdCmUJnhQwVgP4=; b=jLlUD/Hqixw7LkV+2GHQaDK8e47+QbuJTNDssKCXaeHUVi1JDXJmM3+NfPT+MaIU7r IQHnnxVMc9U5OHGBX2VryevvV2a/ui9N4VtofK7ZdnX1K/NlpPMSow/E/q8CebyaIeag nLYgJbryRvtX4hFvuFsT5D67qosvtA5tCFmCt8NRCDnZX+K4YhaLV6P/fdOQdIdUEl+M UkYeoTHqBefLxmtZSy90vj4+LblZ6NBLIFdznAZP9tZlMEu2d5QiJAAN1n0uc38TeNJk Lg4tBLqKuEVFBLPIW8BznO07xcIwgv7Nb3wjBEnGGRm8TMAsygvELmcxQS9yGv6fBCxe xnQQ== X-Gm-Message-State: AOAM5313kBPcff8WsR4em9KF7ct1IeZKKiPYrBBkZWkG+gFnRjORVyZb Uhirmbz3R5MixDv+gWdvVvw= X-Received: by 2002:a17:90a:b785:: with SMTP id m5mr1823388pjr.213.1631071833256; Tue, 07 Sep 2021 20:30:33 -0700 (PDT) Received: from localhost ([45.76.146.157]) by smtp.gmail.com with ESMTPSA id t15sm595283pgi.80.2021.09.07.20.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 20:30:31 -0700 (PDT) From: Kortan To: nathan@kernel.org, ndesaulniers@google.com Cc: masahiroy@kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, Kortan Subject: [PATCH v2] gen_compile_commands: fix missing 'sys' package Date: Wed, 8 Sep 2021 11:28:48 +0800 Message-Id: <20210908032847.18683-1-kortanzh@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need to import the 'sys' package since the script has called sys.exit() method. Signed-off-by: Kortan --- 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