Skip to contentSkip to conversation

eal: fix duplicate function declaration

PATCH Applied Kevin Laatz 3 participants 3 messages Nov 14, 2018 – Nov 18, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 eal: fix duplicate function declaration

The rte_eal_get_runtime_dir() function is currently being declared in two header files.

This API was made public in commit 6911c9fd8fbe ("eal: export function to get runtime directory"), adding it to rte_eal.h. To make it public, the 'rte' prefix was added to the function so it needed to be modified in the original location of the declaration, eal_filesystem.h. By only modifying, and not removing the decalration, it is now a duplicate.

This patch removes the declaration from eal_filesystem.h.

Fixes 6911c9fd8fbe ("eal: export function to get runtime directory")

---
v2:
- Fix commit message (checkpatch warning)

---
 lib/librte_eal/common/eal_filesystem.h | 4 ----
 1 file changed, 4 deletions(-)
lib/librte_eal/common/eal_filesystem.h +0 -4
index b3e8ae5ea..6e0331fdb 100644
@@ -25,10 +25,6 @@
 int
 eal_create_runtime_dir(void);
 
-/* returns runtime dir */
-const char *
-rte_eal_get_runtime_dir(void);
-
 #define RUNTIME_CONFIG_FNAME "config"
 static inline const char *
 eal_runtime_config_path(void)
Signature · 1 line
2.17.2
Acked-by on v2 1/1
#1 lore raw
Quoted 13 lines · Kevin Laatz

The rte_eal_get_runtime_dir() function is currently being declared in two header files.

This API was made public in commit 6911c9fd8fbe ("eal: export function to get runtime directory"), adding it to rte_eal.h. To make it public, the 'rte' prefix was added to the function so it needed to be modified in the original location of the declaration, eal_filesystem.h. By only modifying, and not removing the decalration, it is now a duplicate.

This patch removes the declaration from eal_filesystem.h.

Fixes 6911c9fd8fbe ("eal: export function to get runtime directory")
Quoted 7 lines

---
v2:
- Fix commit message (checkpatch warning)
---

I was too late to ack the first one...

Signature · 2 lines
Thanks,
Anatoly
#2 lore raw

14/11/2018 12:24, Burakov, Anatoly:

Quoted 17 lines · Kevin Laatz
Quoted 16 lines

The rte_eal_get_runtime_dir() function is currently being declared in two header files.

This API was made public in commit 6911c9fd8fbe ("eal: export function to get runtime directory"), adding it to rte_eal.h. To make it public, the 'rte' prefix was added to the function so it needed to be modified in the original location of the declaration, eal_filesystem.h. By only modifying, and not removing the decalration, it is now a duplicate.

This patch removes the declaration from eal_filesystem.h.

Fixes 6911c9fd8fbe ("eal: export function to get runtime directory")
Quoted 8 lines
Quoted 4 lines

---
v2:
- Fix commit message (checkpatch warning)
---

I was too late to ack the first one...

Applied, thanks