public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/6] Deal with a bunch of staticFunction warnings from cppcheck 2.17
@ 2025-03-05  6:15 David Gibson
  2025-03-05  6:15 ` [PATCH 1/6] treewide: Mark assorted functions static David Gibson
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: David Gibson @ 2025-03-05  6:15 UTC (permalink / raw)
  To: Stefano Brivio, passt-dev; +Cc: David Gibson

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-03-07  6:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05  6:15 [PATCH 0/6] Deal with a bunch of staticFunction warnings from cppcheck 2.17 David Gibson
2025-03-05  6:15 ` [PATCH 1/6] treewide: Mark assorted functions static David Gibson
2025-03-05  6:15 ` [PATCH 2/6] log: Don't export passt_vsyslog() David Gibson
2025-03-05  6:15 ` [PATCH 3/6] checksum: Don't export various functions David Gibson
2025-03-05  6:15 ` [PATCH 4/6] tcp: Don't export tcp_update_csum() David Gibson
2025-03-05  6:15 ` [PATCH 5/6] vhost_user: Don't export several functions David Gibson
2025-03-05  6:15 ` [PATCH 6/6] cppcheck: Add suppressions for "logically" exported functions David Gibson
2025-03-07  6:30 ` [PATCH 0/6] Deal with a bunch of staticFunction warnings from cppcheck 2.17 Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).