Go to file
Ali Alnubani c3e89f69fa net/mlx: fix build with clang 9
This rewrites the MKSTR macro appending an empty string to its arguments
to resolve build failures similar to:

  drivers/net/mlx4/mlx4.c:461:14: fatal error: format string is not a
  string literal [-Wformat-nonliteral]
          MKSTR(path, "%s/device/uevent", device->ibdev_path);

  drivers/net/mlx4/mlx4_utils.h:82:30: note: expanded from macro 'MKSTR'
          char name[snprintf(NULL, 0, __VA_ARGS__) + 1]; \

  drivers/net/mlx5/mlx5_stats.c:144:15: fatal error: format string is not a
  string literal [-Wformat-nonliteral]
  	MKSTR(path, "%s/ports/%d/hw_counters/%s",

  drivers/net/mlx5/mlx5_utils.h:149:30: note: expanded from macro 'MKSTR'
  	char name[snprintf(NULL, 0, __VA_ARGS__) + 1]; \

The errors reproduce with clang version 9.0.0, and the release notes
don't mention what could have caused them.

Fixes: 7fae69eeff ("mlx4: new poll mode driver")
Fixes: 771fa900b7 ("mlx5: introduce new driver for Mellanox ConnectX-4 adapters")
Cc: stable@dpdk.org

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Signed-off-by: Matan Azrad <matan@mellanox.com>
2019-12-12 23:23:25 +01:00
.ci ci: add minimal check on testpmd 2019-11-27 00:00:24 +01:00
app test/cfgfile: replace license text with SPDX tag 2019-11-28 03:12:55 +01:00
buildtools devtools: move ABI scripts from buildtools 2019-11-28 16:36:11 +01:00
config config: add pkgconfig for arm64 2019-11-28 23:03:52 +01:00
devtools devtools: control location of test builds 2019-11-28 22:31:53 +01:00
doc doc: fix build with python 3.8 2019-12-12 23:18:10 +01:00
drivers net/mlx: fix build with clang 9 2019-12-12 23:23:25 +01:00
examples examples/fips_validation: fix vectors for AES-GCM 2019-11-28 16:09:48 +01:00
kernel kni: fix build with Linux 4.9.x 2019-11-28 14:48:24 +01:00
lib eal/linux: fix build error on RHEL 7.6 2019-12-04 14:22:02 +01:00
license remove blank lines at end of file 2019-11-26 00:12:08 +01:00
mk mk: remove library search path from binary 2019-11-25 23:51:52 +01:00
usertools usertools: fix typo in SPDX tag of telemetry script 2019-11-28 03:12:55 +01:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore git: ignore more build directories 2019-11-27 23:16:27 +01:00
.travis.yml config: add pkgconfig for arm64 2019-11-28 23:03:52 +01:00
ABI_VERSION version: 20.02-rc0 2019-12-02 17:59:49 +01:00
GNUmakefile test: move to app directory 2019-02-26 15:29:27 +01:00
MAINTAINERS devtools: move ABI scripts from buildtools 2019-11-28 16:36:11 +01:00
Makefile remove blank lines at end of file 2019-11-26 00:12:08 +01:00
meson_options.txt build: change ABI versioning to global 2019-11-20 23:05:39 +01:00
meson.build build: fix Windows build 2019-11-25 15:07:02 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 20.02-rc0 2019-12-02 17:59:49 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org