Skip to contentSkip to conversation

lib/librte_rawdev: fix compile error when using sanitizer

PATCH In review Liu Hongbo 2 participants 2 messages May 25, 2018

lore
Share & tools
lore

Liu Hongbo

author
#0 lore raw

PATCH 1/1 lib/librte_rawdev: fix compile error when using sanitizer

Otherwise, make will report the following error:
rte_rawdevs is not flagged as experimental but is listed in version map
By command: EXTRA_CFLAGS="-fsanitize=address" make

Fixes c88b3f2558 ("rawdev: introduce raw device library")
---
 lib/librte_rawdev/rte_rawdev_version.map | 1 -
 1 file changed, 1 deletion(-)
lib/librte_rawdev/rte_rawdev_version.map +0 -1
index af4465e..7778f44 100644
@@ -28,7 +28,6 @@ EXPERIMENTAL {
 	rte_rawdev_xstats_get;
 	rte_rawdev_xstats_names_get;
 	rte_rawdev_xstats_reset;
-	rte_rawdevs;
 
 	local: *;
 };
Signature · 1 line
2.7.4
#1 lore raw
Quoted 28 lines

-----Original Message-----
From: Liu Hongbo [mailto:[email protected]]
Sent: Friday, May 25, 2018 8:50 AM
To: [email protected]
Cc: Shreyansh Jain <[email protected]>; Liu Hongbo <[email protected]>
Subject: [PATCH] lib/librte_rawdev: fix compile error when using sanitizer

Otherwise, make will report the following error:
rte_rawdevs is not flagged as experimental but is listed in version map
By command: EXTRA_CFLAGS="-fsanitize=address" make

Fixes c88b3f2558 ("rawdev: introduce raw device library")
---
 lib/librte_rawdev/rte_rawdev_version.map | 1 -
 1 file changed, 1 deletion(-)
lib/librte_rawdev/rte_rawdev_version.map +0 -0
index af4465e..7778f44 100644

lib/librte_rawdev/rte_rawdev_version.map EXPERIMENTAL { · line 31

Quoted 4 lines
lib/librte_rawdev/rte_rawdev_version.map +0 -1
@@ -28,7 +28,6 @@ EXPERIMENTAL {
 	rte_rawdev_xstats_get;
 	rte_rawdev_xstats_names_get;
 	rte_rawdev_xstats_reset;
-	rte_rawdevs;

Even before I could respond that compilation would fail, the patchwork system reported this error. http://dpdk.org/ml/archives/test-report/2018-May/054572.html

I am not sure what would be the problem. rte_rawdev is defined in experimental already and anyone using it would need the ALLOW_EXPERIMENTAL_API.

I tried with EXTRA_CFLAGS="-fsanitize=address" and it ran successfully. I am working on gcc 7.3.0 for x86_64.

Quoted 5 lines
lib/librte_rawdev/rte_rawdev_version.map +0 -1
 	local: *;
 };
--

2.7.4