numam-dpdk/drivers/net/mlx4
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
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build net/mlx4: remove dependency on libmnl in meson 2019-10-23 16:43:10 +02:00
mlx4_ethdev.c ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
mlx4_flow.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx4_flow.h ethdev: deprecate legacy filter API 2019-04-19 14:51:54 +02:00
mlx4_glue.c
mlx4_glue.h
mlx4_intr.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4_mp.c ipc: handle unsupported IPC in sync request 2019-06-05 11:28:05 +02:00
mlx4_mr.c remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx4_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx4_prm.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_rxq.c drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
mlx4_rxtx.c eal: hide shared memory config 2019-07-06 10:32:34 +02:00
mlx4_rxtx.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_txq.c net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_utils.c
mlx4_utils.h net/mlx: fix build with clang 9 2019-12-12 23:23:25 +01:00
mlx4.c drivers/net: fix RSS hash offload flag if no RSS 2019-11-20 17:36:06 +01:00
mlx4.h ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
rte_pmd_mlx4_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00