On 1/3/2017 2:06 PM, Thomas Monjalon wrote: > 2017-01-03 12:24, Ferruh Yigit: >> On 12/25/2016 10:33 PM, Thomas Monjalon wrote: >>> Applied with some trivial fixes, thanks >> >> Getting following build error for mlx5 [1], it is mainly because verbs.h >> also using container_of macro. >> >> [1] >> In file included from >> .../x86_64-native-linuxapp-gcc/include/rte_mbuf.h:57:0, >> from .../x86_64-native-linuxapp-gcc/include/rte_ether.h:52, >> from .../drivers/net/mlx5/mlx5_trigger.c:38: >> /usr/include/infiniband/verbs.h: In function ‘verbs_get_device’: >> .../x86_64-native-linuxapp-gcc/include/rte_common.h:350:40: error: >> initialization discards ‘const’ qualifier from pointer target type >> [-Werror=discarded-qualifiers] >> typeof(((type *)0)->member) *_ptr = (ptr); \ >> ^ > > Yes, this issue is fixed by upgrading mofed to version 3.4. >
Confirmed.