diff options
author | Hao Chen <chenhaoa@uniontech.com> | 2021-09-17 17:16:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-17 13:11:25 +0300 |
commit | 6042d4348a341957d5eddadda2137c493a97131e (patch) | |
tree | 30671932df4810d866990db05b25399b4f5da7aa | |
parent | 61524e43abadffbe450f9429f05c19d54cc95496 (diff) | |
download | linux-6042d4348a341957d5eddadda2137c493a97131e.tar.xz |
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 <linux/mutex.h>.
Signed-off-by: Hao Chen <chenhaoa@uniontech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/e1000.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h index 5b2143f4b1f8..f3424255bd2b 100644 --- a/drivers/net/ethernet/intel/e1000e/e1000.h +++ b/drivers/net/ethernet/intel/e1000e/e1000.h @@ -21,6 +21,7 @@ #include <linux/ptp_classify.h> #include <linux/mii.h> #include <linux/mdio.h> +#include <linux/mutex.h> #include <linux/pm_qos.h> #include "hw.h" |