Skip to content

Commit 6042d43

Browse files
Hao Chendavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 61524e4 commit 6042d43

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/intel/e1000e

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/e1000e/e1000.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/ptp_classify.h>
2222
#include <linux/mii.h>
2323
#include <linux/mdio.h>
24+
#include <linux/mutex.h>
2425
#include <linux/pm_qos.h>
2526
#include "hw.h"
2627

0 commit comments

Comments
 (0)