The supported_coalesce_params member was added to the struct ethtool_ops in upstream commit 95cddcb5cc20 ("ethtool: add infrastructure for centralized checking of coalescing parameters"). This prevents the usage in kernel < 5.7. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- patches/0096-ethtool-supported_coalesce_params.cocci | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 patches/0096-ethtool-supported_coalesce_params.cocci diff --git a/patches/0096-ethtool-supported_coalesce_params.cocci b/patches/0096-ethtool-supported_coalesce_params.cocci new file mode 100644 index 00000000..9b1b090e --- /dev/null +++ b/patches/0096-ethtool-supported_coalesce_params.cocci @@ -0,0 +1,9 @@ +@r@ +identifier s,expr; +@@ + +struct ethtool_ops s = { ++#if LINUX_VERSION_IS_GEQ(5,7,0) + .supported_coalesce_params = expr, ++#endif +}; -- 2.20.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in