From: Hao Chen Date: Fri, 17 Sep 2021 14:16:54 +0000 (+0000) Subject: net: e1000e: solve insmod 'Unknown symbol mutex_lock' error X-Git-Tag: baikal/mips/sdk6.1~7192^2~425 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=027e25c46434e706ea81fd165fc4f173ebdd2a6c;p=kernel.git net: e1000e: solve insmod 'Unknown symbol mutex_lock' error After I turn on the CONFIG_LOCK_STAT=y, insmod e1000e.ko will report: [ 5.641579] e1000e: Unknown symbol mutex_lock (err -2) [ 90.775705] e1000e: Unknown symbol mutex_lock (err -2) [ 132.252339] e1000e: Unknown symbol mutex_lock (err -2) This problem fixed after include . Signed-off-by: Hao Chen Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h index 5b2143f4b1f85..f3424255bd2b0 100644 --- a/drivers/net/ethernet/intel/e1000e/e1000.h +++ b/drivers/net/ethernet/intel/e1000e/e1000.h @@ -21,6 +21,7 @@ #include #include #include +#include #include #include "hw.h"