[net-next,v1] net: e1000e: solve insmod 'Unknown symbol mutex_lock' error

Subsystems: intel ethernet drivers, networking drivers, the rest

2 messages, 2 authors, 2021-09-17 · open the first message on its own page

[net-next,v1] net: e1000e: solve insmod 'Unknown symbol mutex_lock' error

From: Hao Chen <hidden>
Date: 2021-09-17 06:17:40

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 <redacted>
---
 drivers/net/ethernet/intel/e1000e/e1000.h | 1 +
 1 file changed, 1 insertion(+)
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"
 
-- 
2.20.1


Re: [net-next,v1] net: e1000e: solve insmod 'Unknown symbol mutex_lock' error

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-17 10:20:09

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Fri, 17 Sep 2021 14:16:54 +0000 you wrote:
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>.

[...]
Here is the summary with links:
  - [net-next,v1] net: e1000e: solve insmod 'Unknown symbol mutex_lock' error
    https://git.kernel.org/netdev/net-next/c/6042d4348a34

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help