eal: split compat header file
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 7 Oct 2019 15:45:49 +0000 (16:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Oct 2019 11:49:28 +0000 (12:49 +0100)
commitdc61aa74b7078329c09c6b748524ef17aa4299e3
treee6c2b7816b450caec1e86ef64553a5c1f1b65eb8
parent7edbf7ddfd7d2453afaad3b72666491d30b616af
eal: split compat header file

The compat.h header file provided macros for two purposes:
1. it provided the macros for marking functions as rte_experimental
2. it provided the macros for doing function versioning

Although these were in the same file, #1 is something that is for use by
public header files, which #2 is for internal use only. Therefore, we can
split these into two headers, keeping #1 in rte_compat.h and #2 in a new
file rte_function_versioning.h. For "make" builds, since internal objects
pick up the headers from the "include/" folder, we need to add the new
header to the installation list, but for "meson" builds it does not need to
be installed as it's not for public use.

The rework also serves to allow the use of the function versioning macros
to files that actually need them, so the use of experimental functions does
not need including of the versioning code.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Andrzej Ostruszka <amo@semihalf.com>
12 files changed:
MAINTAINERS
doc/api/doxy-api-index.md
doc/guides/contributing/versioning.rst
lib/librte_distributor/rte_distributor.c
lib/librte_distributor/rte_distributor_v20.c
lib/librte_eal/common/Makefile
lib/librte_eal/common/include/rte_compat.h
lib/librte_eal/common/include/rte_function_versioning.h [new file with mode: 0644]
lib/librte_lpm/rte_lpm.c
lib/librte_lpm/rte_lpm.h
lib/librte_lpm/rte_lpm6.c
lib/librte_timer/rte_timer.c