I’m trying to compile mlnx-en-4.6 and 4.7 for Linux kernel 4.19 and am having an issue getting dereferencing pointer to incomplete type ‘const struct tc_action_ops’.
The relevant failure is below.
CC [M] /home/ryan/git/x86-dolby-transcoder/MLNX_EN_SRC-4.6-1.0.1.1/SOURCES/mlnx-en-4.6/drivers/net/ethernet/mellanox/mlx5/core/en_tc.o
In file included from /home/ryan/git/x86-dolby-transcoder/MLNX_EN_SRC-4.6-1.0.1.1/SOURCES/mlnx-en-4.6/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:52:0:
/home/ryan/git/x86-dolby-transcoder/MLNX_EN_SRC-4.6-1.0.1.1/SOURCES/mlnx-en-4.6/include/net/tc_act/tc_mirred.h: In function ‘to_mirred_compat’:
/home/ryan/git/x86-dolby-transcoder/MLNX_EN_SRC-4.6-1.0.1.1/SOURCES/mlnx-en-4.6/include/net/tc_act/tc_mirred.h:47:24: error: dereferencing pointer to incomplete type ‘const struct tc_action_ops’
if (!a->ops || !a->ops->dump || !is_tcf_mirred_compat(a))
^~
Any ideas how to fix this?
I can compile mlnx-en-4.6 against kernel 4.14 OK but my team wants the newer kernel and newer 4.7 driver.
Thanks,
Ryan Wilkins