From nobody Sun Jan 07 16:51:55 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T7NWv3z5Lz55Q1C; Sun, 7 Jan 2024 16:51:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T7NWv362Tz4Bqg; Sun, 7 Jan 2024 16:51:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704646315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ensPMn5H+mqoPu2vEFjFKE23vht0yHcD7XFGoIhoZQk=; b=ZzMJsdD+UsYwf1aFimcoeHYP5W3+3GDEVFmfRWQYcLYGBoGZeNDFq1DXyT8u8eoQxcMixK lL/cmDXJUVV1b+kfSloykUyBZAczt1MMhcc1XFFeI57Nb7qaEqUB0AlpcGkn6s7IoMtyln n1d8wK3YoGKh8rXeOXiVkHsG+W+t8b5iqUbnDOdlnhckYRY8oK9xBGLQDk+f45aSL51+1H VaRoI9uW4Mc5ovfGy4f3fH4JO+hvsMJc0GTB63gEB+HGuUMN6K+cqlNBNaZ1aePf/5JinB B3iOy/JPe4q9sb2Gslw3o9GE4o3BXmgk73nuZKaDBjQlCCh3UVCz6vvVMTBhOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704646315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ensPMn5H+mqoPu2vEFjFKE23vht0yHcD7XFGoIhoZQk=; b=eEVpNix93+PMcYVoFhAhqFPVXXlOgXIX0/XopUtHAzpkBI9NxXKlhGOOLnbVdwz/bJvFIr djJ6Te3PtvDaz1iD8lUB8EPGRzXlc+ivHaeVooScmzyV/9obD3WKWzjJj3WjJEXhuV0c+f Uq9B6L+9/glzesCE0wTSXbZoaLVSddaKMmtP5oPVM95vFSdy2yZaEqPkpMx5Hxov83EVYr JxZnihMoohBCEcXdI6pkPfdjf+sLIIJqmbO30wsTNfNu7uHGg6KcHJz4s8F3mSaNgyHJQM 4wj+zUpIZLSBKJxA0BKAmN9h/6w4wYQ7gAeS3jWY7cP4HHLfbpuUt3VXJaLSTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704646315; a=rsa-sha256; cv=none; b=OBMzdkN17one8SIJt/Ef2St8yrcViFuL8Ks1PDvFSWA/PRerj7yxM47ObhvV1sZs2zNzQp yeeqcE4G1kSqeWx/Bp1IAybZ0bSrKOfkOkjbm+7fX1/ZsJvEjn21vcFcCr7mrSftefbqv9 HTShSW0yA8QnIjJok+QRrIKstR4MWiG4nGfO2Gl7rYLHq5DeR4m2iFiSS82JViZ7cabWby SmP1Ru4K43s6H+je7oGHI1PtHq+4bXhzO82t1kMQmk20minfq3GEY8ilamFwRVCok7q5xa 8rm8ySg/kcqB2HX+VG8ndZh5tutB1tqXxR16H9huEIPOHVsTNVoJXoM2O9twEQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T7NWv28PxzXfc; Sun, 7 Jan 2024 16:51:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 407GptnA023597; Sun, 7 Jan 2024 16:51:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 407Gpt0T023594; Sun, 7 Jan 2024 16:51:55 GMT (envelope-from git) Date: Sun, 7 Jan 2024 16:51:55 GMT Message-Id: <202401071651.407Gpt0T023594@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 4748db6ffd42 - main - checkstyle9.pl: Don't use $root if not defined List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4748db6ffd422f8b52d49f5e2982628ac52afb8c Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4748db6ffd422f8b52d49f5e2982628ac52afb8c commit 4748db6ffd422f8b52d49f5e2982628ac52afb8c Author: Warner Losh AuthorDate: 2024-01-07 16:50:51 +0000 Commit: Warner Losh CommitDate: 2024-01-07 16:51:49 +0000 checkstyle9.pl: Don't use $root if not defined $root is only defined when given on the command line. Don't try to use its value when it's not defined. Sponsored by: Netflix --- tools/build/checkstyle9.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/checkstyle9.pl b/tools/build/checkstyle9.pl index d2c6ea77868d..3b28fef93669 100755 --- a/tools/build/checkstyle9.pl +++ b/tools/build/checkstyle9.pl @@ -1410,7 +1410,7 @@ sub process { checkfilename($realfile, \$acpi_testexpected, \$acpi_nontestexpected); $p1_prefix = $1; - if (!$file && $tree && $p1_prefix ne '' && + if (!$file && $tree && $p1_prefix ne '' && defined $root && -e "$root/$p1_prefix") { WARN("patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n"); }