From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id CFEBF5A004F for ; Tue, 16 Jul 2024 07:29:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1721107778; bh=tyRhhqmWb9iIk7c9FARQMMbWdZ8n5Zscz/Ag122FZzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C8qb4oD487taFzGP15LVf6ATBVcMyb6W3eqywZ4UaQ4vw045h9OABn8mWuuj8tDyu Dl49L/KzrGq/Zfuitzxi6ZM0oqXGqF7FjqaSOuVeY1Wy7U3gbX0+ifBl8gPaVX9zfr yc+rRBbDCBIy0AurMUmC0Q2ZC1mpioKOB7LCtl76y+IIUBiaUi72/lbpXpjc1oCXDr 7x9enxm44j3yI/OE9qzsP7v48Rk5AyeJcr4M5lC9I2p9Wm3Gd3g+D09rZP+gJIYT6E torH6RnT4LjUT1iI+PDqW3a+VQ1Yt7xYskxDOycw9+spcgv09hXP9PWQx9qn2AGOoX qbTk4QJIBZwkA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WNSLV4k0Yz4w2Q; Tue, 16 Jul 2024 15:29:38 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 2/5] udp: Make udp_sock_recv static Date: Tue, 16 Jul 2024 15:29:33 +1000 Message-ID: <20240716052936.1204164-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240716052936.1204164-1-david@gibson.dropbear.id.au> References: <20240716052936.1204164-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: IFCLKM5AHV7KH7HMJY4UWVIDFEVBZX76 X-Message-ID-Hash: IFCLKM5AHV7KH7HMJY4UWVIDFEVBZX76 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: Through an oversight this was previously declared as a public function although it's only used in udp.c and there is no prototype in any header. Signed-off-by: David Gibson --- udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/udp.c b/udp.c index dee402f7..187483f0 100644 --- a/udp.c +++ b/udp.c @@ -737,8 +737,8 @@ static void udp_tap_prepare(const struct ctx *c, const struct mmsghdr *mmh, * * #syscalls recvmmsg */ -int udp_sock_recv(const struct ctx *c, int s, uint32_t events, - struct mmsghdr *mmh) +static int udp_sock_recv(const struct ctx *c, int s, uint32_t events, + struct mmsghdr *mmh) { /* For not entirely clear reasons (data locality?) pasta gets better * throughput if we receive tap datagrams one at a atime. For small -- 2.45.2