numam-dpdk/drivers/common/dpaax
Natanael Copa e9fd4b87f0 bus/dpaa: fix build with musl
The header files argp.h and error.h do not exist in musl libc.

Fix build with musl libc by using err(3) instead of
the GNU-specific error(3).

We could have used the identical errx("...: %s", strerror(ret))` but
strerror(3) is not thread-safe and the strerror_r variant has two
incompatible versions, one GNU specific and one XSI-compliant.
Avoid the mess by letting "err" use the thread-local errno.

This also fixes error message for kzmalloc failures which previously
would always have given "Unknown error -1", since that is what
strerror(-1) returns. Let "err" use the proper error message from errno
which is set by kzalloc.

Fixes: 9d32ef0f5d ("bus/dpaa: support creating dynamic HW portal")
Fixes: f09ede6c8f ("bus/dpaa: add BMAN driver core")
Fixes: 5b22cf7446 ("bus/dpaa: introducing FMan configurations")
Fixes: 39f373cf01 ("bus/dpaa: add compatibility and helper macros")
Cc: stable@dpdk.org

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: David Marchand <david.marchand@redhat.com>
2021-03-23 08:41:05 +01:00
..
caamflib common/dpaax/caamflib: simplify log macros 2021-03-23 08:41:05 +01:00
caamflib.c drivers/crypto: fix build with -fno-common 2020-05-15 19:43:17 +02:00
compat.h bus/dpaa: fix build with musl 2021-03-23 08:41:05 +01:00
dpaa_list.h common/dpaax: move OF library from DPAA bus 2019-10-23 16:43:08 +02:00
dpaa_of.c common/dpaax: move OF library from DPAA bus 2019-10-23 16:43:08 +02:00
dpaa_of.h common/dpaax: mark internal symbols 2020-05-19 15:49:53 +02:00
dpaax_iova_table.c mem: remove physical address aliases 2020-09-19 00:25:35 +02:00
dpaax_iova_table.h common/dpaax: mark internal symbols 2020-05-19 15:49:53 +02:00
dpaax_logs.h common/dpaax: move OF library from DPAA bus 2019-10-23 16:43:08 +02:00
meson.build build: remove redundant _GNU_SOURCE definitions 2021-03-23 08:41:05 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00