patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Fady Bader <fady@mellanox.com>
To: thomas@monjalon.net
Cc: fady <fady@mellanox.com>, stable@dpdk.org
Subject: [dpdk-stable] [PATCH] mempool: remove inline functions from export list
Date: Thu, 16 Apr 2020 15:53:45 +0300	[thread overview]
Message-ID: <20200416125345.16668-1-fady@mellanox.com> (raw)

From: fady <fady@mellanox.com>

The code didn't compile when using exported mempool functions.

compilation error logs:
rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_cache_flush
rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_default_cache
rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_generic_get
rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_generic_put
lib\librte_mempool.dll.a : fatal error LNK1120: 4 unresolved externals
clang: error: linker command failed with exit code 1120 (use -v to see invocation)
[77/77] Linking target drivers/librte_bus_pci-0.200.2.dll.
ninja: build stopped: subcommand failed.

The cause was that there were some inline functions that were included in the export list.
To solve this I removed the 4 functions from rte_mempool_version.map export list which are implemented in the header and shouldn't be exported.

Fixes: inline functions export list
Cc: stable@dpdk.org

Signed-off-by: Fady Bader <fady@mellanox.com>
---
 lib/librte_mempool/rte_mempool_version.map | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/librte_mempool/rte_mempool_version.map b/lib/librte_mempool/rte_mempool_version.map
index d002dfc46..d67ed2e2b 100644
--- a/lib/librte_mempool/rte_mempool_version.map
+++ b/lib/librte_mempool/rte_mempool_version.map
@@ -4,18 +4,14 @@ DPDK_20.0 {
 	rte_mempool_audit;
 	rte_mempool_avail_count;
 	rte_mempool_cache_create;
-	rte_mempool_cache_flush;
 	rte_mempool_cache_free;
 	rte_mempool_calc_obj_size;
 	rte_mempool_check_cookies;
 	rte_mempool_contig_blocks_check_cookies;
 	rte_mempool_create;
 	rte_mempool_create_empty;
-	rte_mempool_default_cache;
 	rte_mempool_dump;
 	rte_mempool_free;
-	rte_mempool_generic_get;
-	rte_mempool_generic_put;
 	rte_mempool_in_use_count;
 	rte_mempool_list_dump;
 	rte_mempool_lookup;
-- 
2.16.1.windows.4


             reply	other threads:[~2020-04-16 12:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16 12:53 Fady Bader [this message]
2020-04-22  7:37 Fady Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200416125345.16668-1-fady@mellanox.com \
    --to=fady@mellanox.com \
    --cc=stable@dpdk.org \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).