From b2503cf65a0cb3583a2f0d53f5044ae6e92b6208 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Thu, 30 Sep 2021 23:27:07 -0700 Subject: [PATCH] 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 --- lnet/klnds/o2iblnd/o2iblnd.c | 1 + 1 file changed, 1 insertion(+) 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" -- 1.8.3.1