From: Jian Yu Date: Fri, 1 Oct 2021 06:27:07 +0000 (-0700) Subject: LU-15052 lnet: include linux/ethtool.h X-Git-Tag: 2.14.56~166 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F45109%2F5;p=fs%2Flustre-release.git 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 Reviewed-on: https://review.whamcloud.com/45109 Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lnet/klnds/o2iblnd/o2iblnd.c b/lnet/klnds/o2iblnd/o2iblnd.c index 3407c22..341bef6 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.c +++ b/lnet/klnds/o2iblnd/o2iblnd.c @@ -34,6 +34,7 @@ */ #include +#include #include #include "o2iblnd.h"