Skip to contentSkip to conversation

linux-next: build failure after merge of the staging tree

PATCH Stephen Rothwell 2 participants 4 messages Apr 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Greg,

After merging the staging tree, today's linux-next build (powerpc allyesconfig - I presume that an x86_64 allyesconfig will fail the same way) failed like this:

drivers/staging/rtl8188eu/core/rtw_wlan_util.o: In function `.rtw_get_oper_ch':
(.text+0x9d0): multiple definition of `.rtw_get_oper_ch' drivers/staging/rtl8723bs/core/rtw_wlan_util.o:(.text+0x9a0): first defined here

and many, many more ...

Presumably caused by commit

554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")

I guess this driver was copied from drivers/staging/rtl8188eu/ at some point and modified (or they have the same ancestor) since they share a large number of global symbols.

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Tue, 11 Apr 2017 14:53:55 +1000
Subject: [PATCH] staging: disable the rtl8723bs sdio wifi driver for now

---
 drivers/staging/rtl8723bs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/rtl8723bs/Kconfig +1 -0
index 71450eee3b28..04706d3148d6 100644
@@ -1,6 +1,7 @@
 config RTL8723BS
 	tristate "Realtek RTL8723BS SDIO Wireless LAN NIC driver"
 	depends on WLAN && MMC && CFG80211
+	depends on BROKEN
 	select WIRELESS_EXT
 	select WEXT_PRIV
 	---help---
Signature · 5 lines
2.11.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 36 lines · Stephen Rothwell

Hi Greg,

After merging the staging tree, today's linux-next build (powerpc allyesconfig - I presume that an x86_64 allyesconfig will fail the same way) failed like this:

drivers/staging/rtl8188eu/core/rtw_wlan_util.o: In function `.rtw_get_oper_ch':
(.text+0x9d0): multiple definition of `.rtw_get_oper_ch' drivers/staging/rtl8723bs/core/rtw_wlan_util.o:(.text+0x9a0): first defined here

and many, many more ...

Presumably caused by commit

554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")

I guess this driver was copied from drivers/staging/rtl8188eu/ at some point and modified (or they have the same ancestor) since they share a large number of global symbols.

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Tue, 11 Apr 2017 14:53:55 +1000
Subject: [PATCH] staging: disable the rtl8723bs sdio wifi driver for now

---
 drivers/staging/rtl8723bs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/rtl8723bs/Kconfig +0 -0
index 71450eee3b28..04706d3148d6 100644

drivers/staging/rtl8723bs/Kconfig line 7

Quoted 7 lines
drivers/staging/rtl8723bs/Kconfig +1 -0
@@ -1,6 +1,7 @@
 config RTL8723BS
 	tristate "Realtek RTL8723BS SDIO Wireless LAN NIC driver"
 	depends on WLAN && MMC && CFG80211
+	depends on BROKEN
 	select WIRELESS_EXT
 	select WEXT_PRIV
 	---help---

Yes, thanks, we are going to force this to be built as a module which should resolve the issues...

thanks,

greg k-h

#2 lore raw
Quoted 32 lines · Greg KH
Quoted 31 lines · Stephen Rothwell

Hi Greg,

After merging the staging tree, today's linux-next build (powerpc allyesconfig - I presume that an x86_64 allyesconfig will fail the same way) failed like this:

drivers/staging/rtl8188eu/core/rtw_wlan_util.o: In function `.rtw_get_oper_ch':
(.text+0x9d0): multiple definition of `.rtw_get_oper_ch' drivers/staging/rtl8723bs/core/rtw_wlan_util.o:(.text+0x9a0): first defined here

and many, many more ...

Presumably caused by commit

554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")

I guess this driver was copied from drivers/staging/rtl8188eu/ at some point and modified (or they have the same ancestor) since they share a large number of global symbols.

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Tue, 11 Apr 2017 14:53:55 +1000
Subject: [PATCH] staging: disable the rtl8723bs sdio wifi driver for now

---
 drivers/staging/rtl8723bs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines

drivers/staging/rtl8723bs/Kconfig line 7

Quoted 12 lines
drivers/staging/rtl8723bs/Kconfig +1 -0
index 71450eee3b28..04706d3148d6 100644
@@ -1,6 +1,7 @@
 config RTL8723BS
 	tristate "Realtek RTL8723BS SDIO Wireless LAN NIC driver"
 	depends on WLAN && MMC && CFG80211
+	depends on BROKEN
 	select WIRELESS_EXT
 	select WEXT_PRIV
 	---help---

Yes, thanks, we are going to force this to be built as a module which should resolve the issues...

I should have this fixed now, sorry for taking so long.

greg k-h

#3 lore raw

Hi Greg,

Quoted 2 lines · On Tue, 11 Apr 2017 07:38:32 +0200 Greg KH <[email protected]> wrote:

I should have this fixed now, sorry for taking so long.

Thanks and no worries.

Signature · 2 lines
Cheers,
Stephen Rothwell