From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202602 header.b=V/RLhpBP; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id B03295A0269 for ; Tue, 21 Apr 2026 04:43:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1776739427; bh=Ny/g/xkeDgVX/NMn+ea8sfLKRvwmbe2QTtTWT05dMiM=; h=From:To:Cc:Subject:Date:From; b=V/RLhpBPjweMzvkVWPT8mhapNn85UtRC4jhJ28noyo+p3VjDJwAZh8fVnWeIF7Mvi T4sYo9au+Ja425mOiE344k4qAybJB8QTLAP3zSlD+iUSh2gNWxiOGNV9Io3YOQSJ22 djGz9lSi3k8kUn331OBb54Hv8XSOaG+KrsyJWpizUCuo61fFdJ8X5GxyxLtvID/4Em ACSDaUq+dB5DwYjAFCdNhvAGnKKysPBxkLjsz6r2gCLdex6MQZLOh7Go7+NJt/iXZD ENyBbdWFKdUUF6JPmDI1CxzVslKgWcybLKP3VLd0nqBQ5tf9yL4+Jyb+NhPFXvSeVP lsTcFunksFHcQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4g069v1yhWz4w1l; Tue, 21 Apr 2026 12:43:47 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 00/13] Improvements to static checker invocation Date: Tue, 21 Apr 2026 12:43:31 +1000 Message-ID: <20260421024344.1379633-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.53.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: UJJAQXAVAYF6OUDN3IEKJZ3KEXT7UPFN X-Message-ID-Hash: UJJAQXAVAYF6OUDN3IEKJZ3KEXT7UPFN X-MailFrom: dgibson@gandalf.ozlabs.org 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 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: While working on pesto, I ran into a number of awkward errors with the static checkers. This series reworks the invocation of the checkers in a way that will let us deal with that. As a bonus, it also gives us static checking for passt-repair and qrap. It also makes a few other cleanups to the Makefile that seemed natural along the way. David Gibson (13): Makefile: Use make variables for static checker configuration cppcheck: Split out essential defines into a BASE_CPPFLAGS variable Makefile: Remove preprocessor flags from $(FLAGS) Makefile: Remove non-standard $(FLAGS) variable Makefile: Make conditional definition of $(BIN) clearer Makefile: Use common binary compilation rule Makefile: Remove unhelpful $(HEADERS) variable Makefile: Add header dependencies for secondary binaries Makefile: Split static checker targets passt-repair: Split out inotify handling to its own function passt-repair: Simplify construction of Unix path from inotify passt-repair: Run static checkers qrap: Run static checkers Makefile | 106 ++++++++++++++++++------------ linux_dep.h | 2 +- passt-repair.c | 171 +++++++++++++++++++++++++++---------------------- qrap.c | 42 +++++++----- 4 files changed, 188 insertions(+), 133 deletions(-) -- 2.53.0