From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 0E1985A026E for ; Sun, 22 Nov 2026 23:15:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795385721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0zzCNbIWvqGC7gymAMh1aHaLTNkPqQJGWkdvl17jg/k=; b=Bvsnz8/bsLYfBoXwn7aJwImseU6ubH0A6JMba2dbd+kSpaZMCTF9IyiN3g2b0FMA25GOwG 4OydHzdoZCvX6xtGb7/y9+thzJLutFhsOG2cfhSIKRSphVD1iEkoqv3bGYy0moC8/ICXB1 /uzwMg9HOtT4fULNYOqjafyYx0gzrmI= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-112-fuf86xOOMN2AJ-_lY62Zdg-1; Sun, 22 Nov 2026 22:15:20 +0000 X-MC-Unique: fuf86xOOMN2AJ-_lY62Zdg-1 X-Mimecast-MFC-AGG-ID: fuf86xOOMN2AJ-_lY62Zdg_1795385719 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-4923b9fdd43so1668594f8f.3 for ; Sun, 22 Nov 2026 14:15:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795385719; x=1795990519; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=0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DhLx7c/hDD +ArnvBQyqkKU/8cYYqiS2sjm7XOUQjUUJtNqMw2JoYr85Xky3cFBEHn5j1H41Dp32+Ms= X-Received: by 2002:adf:e012:0:10b0:48e:3697:708d with SMTP id ffacd0b85a97d-4abb0d51ab2mr13069911f8f.12.1795385718983; Sun, 22 Nov 2026 14:15:18 -0800 (PST) X-Received: by 2002:adf:e012:0:10b0:48e:3697:708d with SMTP id ffacd0b85a97d-4abb0d51ab2mr13069895f8f.12.1795385718478; Sun, 22 Nov 2026 14:15:18 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6c340df4sm21514820f8f.55.2026.11.22.14.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2026 14:15:17 -0800 (PST) From: Stefano Brivio To: Jon Maloy Subject: Re: [PATCH] flow: Reduce scope of type_or_state in flow_log__() Message-ID: <20261122231516.3025646e@elisabeth> In-Reply-To: <20261120001529.1440334-1-jmaloy@redhat.com> References: <20261120001529.1440334-1-jmaloy@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Sun, 22 Nov 2026 23:15:17 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: jSQ594m1USgC6Cjm0PZtC0NAlDcWs0Bn4QS3uVkz_ZM_1795385719 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: KQFRYYDM5NNFR7MAU2VOJ3J2ZSEDOYEE X-Message-ID-Hash: KQFRYYDM5NNFR7MAU2VOJ3J2ZSEDOYEE X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: david@gibson.dropbear.id.au, passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 19 Nov 2026 19:15:29 -0500 Jon Maloy wrote: > Since commit bfbd2deae0c3 ("flow: Handle NULL (unknown) flows in flow > logging functions"), type_or_state is only used in the branch handling > non-NULL flows, and cppcheck points out that its scope can be reduced, > causing 'make cppcheck' to fail. We do that here. > > Fixes: bfbd2deae0c3 ("flow: Handle NULL (unknown) flows in flow logging functions") > Signed-off-by: Jon Maloy See: https://archives.passt.top/passt-dev/20261119124916.3150605-1-lvivier@redhat.com/ I applied that one with this Fixes: tag even though the Cppcheck version I'm using didn't report this, but I would still agree that it's a fix for most people. -- Stefano