From: Kevin Laatz Date: Wed, 14 Nov 2018 11:20:05 +0000 (+0000) Subject: eal: fix duplicate function declaration X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2ddd89c3c6a29e7fc37604c6ecc49d8933dba08e;p=dpdk.git 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") Reported-by: Anatoly Burakov Signed-off-by: Kevin Laatz Acked-by: Anatoly Burakov --- diff --git a/lib/librte_eal/common/eal_filesystem.h b/lib/librte_eal/common/eal_filesystem.h index b3e8ae5ead..6e0331fdb5 100644 --- a/lib/librte_eal/common/eal_filesystem.h +++ b/lib/librte_eal/common/eal_filesystem.h @@ -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)