error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_coalesce = hinic3_get_coalesce,

问题描述

解决方案

修改ossl_knl_linux.h文件,注释掉HAVE_ETHTOOL_COALESCE_EXTACK宏即可,如图1所示。

图1 注释

如果注释掉仍然报错,则需要找到对应报错位置修改hinic3_ethtool.c文件,如图2图3所示。

图2 修改hinic3_ethtool.c文件(1)
图3 修改hinic3_ethtool.c文件(2)