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=202502 header.b=OgbwSxCL; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 8DFB05A9C3A for ; Wed, 05 Mar 2025 07:15:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1741155310; bh=b0gb+ZwE/EZOqNbvcfIHYlMC5cBoWu9xg3WHiRRqtCI=; h=From:To:Cc:Subject:Date:From; b=OgbwSxCLM0btVfGYaXjEFr5Zen0KwVzjjn9wcxWXgGHhOLTHV3gyXn5J5+CPYrJme xujIsp2BgYNWN19PTna+FpwgJgz4ltNgY0iTYSBRB4b4S/MuOSq04OWy7bL7Ltq4Q2 hLExnANS4kWrF4eAtbnjgvbV7xZNL4ow4OpVMyd7+7eZqwQ+7eZi9XY3Z9nsQCtHSM 1JEymqUJktXJCbiYP2u2PxzmSSHbGS2VIX0vpTCMFuGmCGcQrrhVwGiHviMMWYbCbx 2hcHKoWBzOsTtGxNKAArOm31h8aOxH6jfpFVSZbKoKKNuvrzzleXyeWqc6wIxItl8r IfMylZZNmGRrg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Z72My3BfNz4x5g; Wed, 5 Mar 2025 17:15:10 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/6] Deal with a bunch of staticFunction warnings from cppcheck 2.17 Date: Wed, 5 Mar 2025 17:15:02 +1100 Message-ID: <20250305061508.1699713-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.48.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: DOSINL64HDX4MJYPI4M6PDZQ56FLGLHZ X-Message-ID-Hash: DOSINL64HDX4MJYPI4M6PDZQ56FLGLHZ 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: The new cppcheck version in Fedora 41 is a bunch more aggressive with staticFunction warnings, about exposed functions that aren't used outside their .c file. Deal with these warnings. David Gibson (6): treewide: Mark assorted functions static log: Don't export passt_vsyslog() checksum: Don't export various functions tcp: Don't export tcp_update_csum() vhost_user: Don't export several functions cppcheck: Add suppressions for "logically" exported functions checksum.c | 34 ++++++++++++++++----------------- checksum.h | 3 --- iov.c | 1 + log.c | 51 +++++++++++++++++++++++++------------------------- log.h | 1 - netlink.c | 2 +- passt.c | 2 +- tcp.c | 9 +++++---- tcp_internal.h | 2 -- vhost_user.c | 2 +- vhost_user.h | 1 - virtio.c | 9 +++++---- virtio.h | 4 ---- 13 files changed, 57 insertions(+), 64 deletions(-) -- 2.48.1