From patchwork Mon Apr 19 14:54:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 423997 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp2791272jaf; Mon, 19 Apr 2021 07:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx44mjGghhGgaBjwCBhDRcUzWiR/xvCeTA2MdHms2IKucO8iRreVBBhijJDPqkFqy7QrePD X-Received: by 2002:a02:c908:: with SMTP id t8mr17151335jao.78.1618844166285; Mon, 19 Apr 2021 07:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618844166; cv=none; d=google.com; s=arc-20160816; b=eWZtL12sT50wIoTdpFpBW5TELuiyBd4zASTtTdd1pFVwIAqhzmUQjOcbBGgHvtKBEo YZ2ohbUZuBL7yJbi73yhT1l7cBE+A8To2+MXZ2asm57HhdMbx4SdwtSUEhPd1f0j5ARv 6clkwsbyo2jpeoGjhMLm4ESLzQElI3Vg2Wz3Ri2fbhIvAzlUgjHucwcDP49dWasGq+aB LCyoP4N+VNRqbtIpKEaktafoa9OK0ZuvVY+HIRIFXgDQmdYoZk/8ULyISllwjC3WftOB AxVkA6K+SSIVhcfDU+9Fr6Zqchpvr3VUUqMfs5s4xB7iZNhv5hpBJgMmjZfKYrkQ9ilk jIAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=tLKjqMKIjh3YXoNizCAFrfsiNgZ3bBB8hCFaWw47VeQ=; b=L/TyCkQ674EcpSIynvsftgT8OqX6ndJyMdBw9MSN1hqwyLrD/p9mUHaLQWGEfZC7bO 3APqs+rrF+633KKoC1Tlurp5674DsCUQwuJ1wL/aayl0p5Z1qGElyEkXZJaCv3EmGHDa bcjNTMr6bASo0O8QD5skcqjhhy9aUGbW3hYmr5KMcQXxeGe31jFI/xt+cdC+9OOt1kBR kwua14KWxE4hAA7d6IsfCLJ2J1ppJoj/x+cCUZJ1twYYszV+k6qc58d+pSxeR1k3e2nT Nr7/fjg9nZyFNBHPdoaJMvaUZLdrHHX4TCVAUBsZvhNqH8xeof6K6rEwkhesk1H+6HjD fiKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qg5j9pPo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b27si11781963jav.110.2021.04.19.07.56.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Apr 2021 07:56:06 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qg5j9pPo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVJl-0002za-My for patch@linaro.org; Mon, 19 Apr 2021 10:56:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYVIP-0002yj-1P for qemu-devel@nongnu.org; Mon, 19 Apr 2021 10:54:41 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:36419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYVIN-0006s5-HK for qemu-devel@nongnu.org; Mon, 19 Apr 2021 10:54:40 -0400 Received: by mail-wm1-x333.google.com with SMTP id o9-20020a1c41090000b029012c8dac9d47so11367740wma.1 for ; Mon, 19 Apr 2021 07:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tLKjqMKIjh3YXoNizCAFrfsiNgZ3bBB8hCFaWw47VeQ=; b=qg5j9pPoXKLLVMKjdZXYeB9xLDGsqNfcMjAlCvRQ3hBBPoQiIaaiBNrqtD0Ly3nG0M CKKkF93sSqAMqcLvfxWvfvgC48ZtAMKRdu8C23LrKWd6Q/TklIp1Z7tGAE+NstgaUlVA FoMAhL5shFM6ztdmOHKjUcYZcEMaVwuUcSPsNDG4AeuscDGs79pSuuB6yhWArCd72GH/ hmxoDEzgKJc7jh6WWql+3BP1YYcE/0m3Ao2K7L87vSTh3JsWR73SxzKRjKfhdY5KSmD3 VfJPB+xWqGWeGrwMWmdeJdEaD6bC05Rt36WcErywmeOJipEJvHRfxdxFyTbXvDWW67Oo 17dg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=tLKjqMKIjh3YXoNizCAFrfsiNgZ3bBB8hCFaWw47VeQ=; b=lKwWbGXH7wtqkF0SjMPfi43SJMOmGMDhlwJTb8VXcrDVq4GNcY9o7zZ5/7VnsyhvH6 2q90hIuWZNyHIL2r0H8vIqKDE6CDSChI3hjomV3VlPF6UMqDKuJLZaf8gdEt6eCD4086 Q7aDB7aPSgmhF2OsOS0cswXE28vpZ9495jO8L1pAw87HGFxvmZJw5/NW9kPxSUEbON8R lZe2aeX1mZh7Nv995wxXjHgE1HCBUuiATjDPsXuY2N737STs5cPhcmjIs2E414GbGffX tk25AhubBecV9cyLDnK7DP/3mHcij/bNAsr54hJXgqkneKs+9lwzUyuXzsIUo/JCka7a MI2Q== X-Gm-Message-State: AOAM533CXVORqMHULOIHLxYUujl7xAF3wF1yrs3sTNEZnlgTCTbo5yPa f6BCBq7b0p5D2S8Kanhpr2hpzQ== X-Received: by 2002:a05:600c:3790:: with SMTP id o16mr17134396wmr.174.1618844077923; Mon, 19 Apr 2021 07:54:37 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g9sm20127354wmh.21.2021.04.19.07.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 07:54:36 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id ABF171FF87; Mon, 19 Apr 2021 15:54:35 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 01/25] checkpatch: Fix use of uninitialized value Date: Mon, 19 Apr 2021 15:54:11 +0100 Message-Id: <20210419145435.14083-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210419145435.14083-1-alex.bennee@linaro.org> References: <20210419145435.14083-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Isaku Yamahata , berrange@redhat.com, f4bug@amsat.org, Greg Kurz , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Greg Kurz checkfilename() doesn't always set $acpi_testexpected. Fix the following warning: Use of uninitialized value $acpi_testexpected in string eq at ./scripts/checkpatch.pl line 1529. Fixes: d2f1af0e4120 ("checkpatch: don't emit warning on newly created acpi data files") Signed-off-by: Greg Kurz Reviewed-by: Isaku Yamahata Reviewed-by: Alex Bennée Cc: isaku.yamahata@intel.com Message-Id: <20210408164610.14229-1-alex.bennee@linaro.org> Message-Id: <161786467973.295167.5612704777283969903.stgit@bahia.lan> Signed-off-by: Alex Bennée --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8f7053ec9b..3d185cceac 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1532,6 +1532,7 @@ sub process { ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ && (defined($1) || defined($2)))) && !(($realfile ne '') && + defined($acpi_testexpected) && ($realfile eq $acpi_testexpected))) { $reported_maintainer_file = 1; WARN("added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr);