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 DFFBE5A004F for ; Wed, 17 Jul 2024 02:36:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1721176565; bh=tyRhhqmWb9iIk7c9FARQMMbWdZ8n5Zscz/Ag122FZzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QL1Q8tAF0eTlX9MyiU3lT0Mk27hjqnbQIzPB2mwvVPTcOKMKd2enHkZ+EuYOD6wVW ejhIEyGoiqWSjB6o/l2HXwpr9yG+QRg0XfPI9e6TPJrt5sgQzU9nwrsHb0FNPoX0Nt va6+WCC3dfe2Y7DvLAgD8zvJY09+aNBppr56nXA3/cxIVN3qhZvFEIzsntXaKhf5b0 XeSWtC0u1vJnJBHFqN2QaBgpBcX7be1aI9pPkmqFcGWbFlpov/7qSHFTwAglUanP3R EtlLrQLdpDJHTJ1uCexQwHBEASYJh2hUsPLBvg305rh5A7vrbfaUHQ2dC1aghAqvE1 f7mAnAeAfyrbQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WNxnK6yW3z4x12; Wed, 17 Jul 2024 10:36:05 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v2 2/5] udp: Make udp_sock_recv static Date: Wed, 17 Jul 2024 10:36:01 +1000 Message-ID: <20240717003604.1577052-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240717003604.1577052-1-david@gibson.dropbear.id.au> References: <20240717003604.1577052-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: EAPYYZQSZ3GLNYBAX7COEHYVICOLULZF X-Message-ID-Hash: EAPYYZQSZ3GLNYBAX7COEHYVICOLULZF 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