Bug 102141

Summary: stmmac_platform: Unknown symbol devm_kmalloc (err 0)
Product: Drivers Reporter: Igor Raits (igor.raits)
Component: NetworkAssignee: drivers_network (drivers_network)
Status: NEW ---    
Severity: normal CC: igor.raits, pbrobinson
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: kernel-4.2.0-0.rc4.git3.1.fc24 Subsystem:
Regression: Yes Bisected commit-id:

Description Igor Raits 2015-07-30 17:12:51 UTC
stmmac_platform: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
stmmac_platform: Unknown symbol devm_kmalloc (err 0)
stmmac_platform: Unknown symbol stmmac_suspend (err 0)
stmmac_platform: Unknown symbol platform_get_irq_byname (err 0)
stmmac_platform: Unknown symbol stmmac_dvr_remove (err 0)
stmmac_platform: Unknown symbol platform_get_resource (err 0)
stmmac_platform: Unknown symbol of_get_phy_mode (err 0)
stmmac_platform: Unknown symbol of_property_read_u32_array (err 0)
stmmac_platform: Unknown symbol of_alias_get_id (err 0)
stmmac_platform: Unknown symbol stmmac_resume (err 0)
stmmac_platform: Unknown symbol stmmac_dvr_probe (err 0)

It works perfetcly with 4.1.2 release.
Comment 1 Igor Raits 2015-07-30 17:29:33 UTC
I'm trying to use stmmac within cubietruck (sunxi).

i think it worked within 4.1.2 because it had separade sunxi driver, now it is in stmmac.
Comment 2 Peter Robinson 2015-07-31 15:14:28 UTC
There wasn't a separate driver in < 4.1 but there has been some re-factoring that landed in 4.2 [0] that broke it, I suspect the patch author didn't test it with a modular build. I'm looking at it when I get the time but I'm hoping someone will fix it upstream 

[0] http://www.spinics.net/lists/netdev/msg328997.html
Comment 3 Igor Raits 2015-07-31 15:17:14 UTC
(In reply to Peter Robinson from comment #2)
> There wasn't a separate driver in < 4.1 but there has been some re-factoring
> that landed in 4.2 [0] that broke it, I suspect the patch author didn't test
> it with a modular build. I'm looking at it when I get the time but I'm
> hoping someone will fix it upstream 
> 
> [0] http://www.spinics.net/lists/netdev/msg328997.html

yes, I sent this bug also to maillist and when Joachim Eastwood will have a patch - I will test it.

http://thread.gmane.org/gmane.linux.network/372237