From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9AEBDA04DB for ; Wed, 2 Dec 2020 15:39:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 76BD9C99C; Wed, 2 Dec 2020 15:39:06 +0100 (CET) Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id A53A2C99C for ; Wed, 2 Dec 2020 15:39:04 +0100 (CET) Received: from glumotte.dev.6wind.com. (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 646B849C977; Wed, 2 Dec 2020 15:39:04 +0100 (CET) From: Olivier Matz To: stable@dpdk.org Cc: Bruce Richardson , Radu Nicolau , Kevin Traynor Date: Wed, 2 Dec 2020 15:38:50 +0100 Message-Id: <20201202143849.26557-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 18.11] examples/multi_process: fix compilation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Fix compilation of examples/multi_process: > examples/multi_process/client_server_mp/mp_server/main.c:68:4: error: > implicit declaration of function ‘rte_ether_format_addr’; > did you mean ‘ether_format_addr’? [-Werror=implicit-function-declaration] > rte_ether_format_addr(err_address, > ^~~~~~~~~~~~~~~~~~~~~ This failure happens after the backport of commit a7500412fc5c ("examples/multi_process: fix build on Ubuntu 20.04"), which uses a function that does not exist in this branch. The function was introduced by upstream commit 538da7a1cad2 ("net: add rte prefix to ether functions"), and is just a renaming of an existing function. Fixes: a7500412fc5c ("examples/multi_process: fix build on Ubuntu 20.04") Signed-off-by: Olivier Matz --- examples/multi_process/client_server_mp/mp_server/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/multi_process/client_server_mp/mp_server/main.c b/examples/multi_process/client_server_mp/mp_server/main.c index 1a5bf534ff..62abd62cf3 100644 --- a/examples/multi_process/client_server_mp/mp_server/main.c +++ b/examples/multi_process/client_server_mp/mp_server/main.c @@ -65,14 +65,14 @@ get_printable_mac_addr(uint16_t port) if (unlikely(port >= RTE_MAX_ETHPORTS)) { if (err_address[0] == '\0') - rte_ether_format_addr(err_address, + ether_format_addr(err_address, sizeof(err_address), &null_mac); return err_address; } if (unlikely(addresses[port][0]=='\0')){ struct ether_addr mac; rte_eth_macaddr_get(port, &mac); - rte_ether_format_addr(addresses[port], + ether_format_addr(addresses[port], sizeof(addresses[port]), &mac); } return addresses[port]; -- 2.25.1