Whamcloud - gitweb
EX-3937 lnet: check if ethtool.h is included in netdevice.h
authorJian Yu <yujian@whamcloud.com>
Thu, 30 Sep 2021 08:31:45 +0000 (01:31 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 1 Oct 2021 00:29:03 +0000 (00:29 +0000)
commita8929b9f0b3e86ae91fd0037edc37a356020a947
treef0b2e5996234e23a8cbf4eac8f0aaa9f4c612c33
parentf17dbbcc7572f5da796f09b6e5184376bce66d26
EX-3937 lnet: check if ethtool.h is included in netdevice.h

Kernel 5.11.0-36 removes including linux/ethtool.h from
linux/netdevice.h, which caused the following build error:

dereferencing pointer to incomplete type ‘const struct ethtool_ops’

This patch fixes the above issue by checking if ethtool.h
is included in netdevice.h.

Change-Id: Ifc25de5acaebf2b5fd5bb6f1c303366ab9ea6ef6
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45097
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/socklnd/socklnd.c