Whamcloud - gitweb
LU-15052 lnet: include linux/ethtool.h 09/45109/5
authorJian Yu <yujian@whamcloud.com>
Fri, 1 Oct 2021 06:27:07 +0000 (23:27 -0700)
committerOleg Drokin <green@whamcloud.com>
Sun, 10 Oct 2021 03:33:01 +0000 (03:33 +0000)
commitb2503cf65a0cb3583a2f0d53f5044ae6e92b6208
tree0d733c314d4ab48700fd7ff4453c11cb4ea01524
parent588f17c88a415e19394d793be32f6a695449519f
LU-15052 lnet: include linux/ethtool.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 adding the include into
the file that uses the structure.

Test-Parameters: trivial

Change-Id: Ifc25de5acaebf2b5fd5bb6f1c303366ab9ea6ef6
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45109
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c