From nobody Wed May 1 21:29:55 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1617864732; cv=none; d=zohomail.com; s=zohoarc; b=IlVdL9bwG5wsgzv2QGxgzb8jxJrz2prdJVXGOJQCnNQwiKKQn8mmXwhwGN5RembgKgHEGkF6s8igOAba2dg1i/8Rq5TxMeh+MfDtuhHTw/o6epDQ/pgeklBjHP8sDSXCjSPqdNULgs61wy3h+GJPW3hy28npqHdxbo0qepE48nA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617864732; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=/Pe+tSGh0jhe7LyLRYGCKHAF3gsjpESotoTcsZPpvoo=; b=iITgRU9gAXpBWNZqERguWot4OL7yTe+P7sCGV1Q5A6GqbAS7oI7wgplS9qxBWP9HoTMkG5mhi90hWiFcdBPV9MV/CKbhuU/HhiA1lfhys5U3l2jQb3i0Q8zha+D2H162ksSKop+FmuEeYA6g1MW9LBBUp/oBUIoKQWrN+aQ5X8k= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1617864732830125.54127944523452; Wed, 7 Apr 2021 23:52:12 -0700 (PDT) Received: from localhost ([::1]:42608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUOWR-0007Jp-31 for importer@patchew.org; Thu, 08 Apr 2021 02:52:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUOVp-0006um-LW for qemu-devel@nongnu.org; Thu, 08 Apr 2021 02:51:33 -0400 Received: from us-smtp-delivery-44.mimecast.com ([207.211.30.44]:31598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUOVo-00063z-64 for qemu-devel@nongnu.org; Thu, 08 Apr 2021 02:51:33 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-195-Ld6RpoQ2OKKwhktxShKV6g-1; Thu, 08 Apr 2021 02:51:26 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C0D2E802575; Thu, 8 Apr 2021 06:51:24 +0000 (UTC) Received: from bahia.lan (ovpn-112-226.ams2.redhat.com [10.36.112.226]) by smtp.corp.redhat.com (Postfix) with ESMTP id AB6EB17CD9; Thu, 8 Apr 2021 06:51:20 +0000 (UTC) X-MC-Unique: Ld6RpoQ2OKKwhktxShKV6g-1 Subject: [PATCH] checkpatch: Fix use of uninitialized value From: Greg Kurz To: qemu-devel@nongnu.org Date: Thu, 08 Apr 2021 08:51:19 +0200 Message-ID: <161786467973.295167.5612704777283969903.stgit@bahia.lan> User-Agent: StGit/0.21 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=groug@kaod.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kaod.org Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: softfail client-ip=207.211.30.44; envelope-from=groug@kaod.org; helo=us-smtp-delivery-44.mimecast.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no 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: isaku.yamahata@intel.com, Peter Maydell , "Michael S. Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" 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") Cc: isaku.yamahata@intel.com Signed-off-by: Greg Kurz Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Isaku Yamahata --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8f7053ec9b26..3d185cceac94 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1532,6 +1532,7 @@ sub process { ($line =3D~ /\{\s*([\w\/\.\-]*)\s*\=3D\>\s*([\w\/\.\-]*)\s*\}/ && (defined($1) || defined($2)))) && !(($realfile ne '') && + defined($acpi_testexpected) && ($realfile eq $acpi_testexpected))) { $reported_maintainer_file =3D 1; WARN("added, moved or deleted file(s), does MAINTAINERS need updating?\= n" . $herecurr);