Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 3 participants 8 messages Dec 4, 2017 – Dec 12, 2017

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

Hi Lee,

After merging the mfd tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/staging/rts5208/sd.o: In function `.sd_power_off_card3v3':
(.text+0x5760): multiple definition of .sd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.text+0x4630): first defined here drivers/staging/rts5208/sd.o:(.opd+0x378): multiple definition of sd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x4f8): first defined here drivers/staging/rts5208/ms.o: In function `.ms_power_off_card3v3':
(.text+0x5e70): multiple definition of .ms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.text+0x46e0): first defined here drivers/staging/rts5208/ms.o:(.opd+0x360): multiple definition of ms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x510): first defined here

Caused by commit

5da4e04ae480 ("misc: rtsx: Add support for RTS5260")

I added the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 4 Dec 2017 14:10:34 +1100
Subject: [PATCH] misc: rtsx: fix symbol clashes

---
 drivers/misc/cardreader/rts5260.c  | 4 ++--
 drivers/misc/cardreader/rtsx_pcr.c | 4 ++--
 drivers/misc/cardreader/rtsx_pcr.h | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/misc/cardreader/rts5260.c +2 -2
index 3b308640282d..07cb93abf685 100644
@@ -426,9 +426,9 @@ void rts5260_process_ocp(struct rtsx_pcr *pcr)
 	rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat);
 	rts5260_get_ocpstat2(pcr, &pcr->ocp_stat2);
 	if (pcr->card_exist & SD_EXIST)
-		sd_power_off_card3v3(pcr);
+		rtsx_sd_power_off_card3v3(pcr);
 	else if (pcr->card_exist & MS_EXIST)
-		ms_power_off_card3v3(pcr);
+		rtsx_ms_power_off_card3v3(pcr);
 
 	if (!(pcr->card_exist & MS_EXIST) && !(pcr->card_exist & SD_EXIST)) {
 		if ((pcr->ocp_stat & (SD_OC_NOW | SD_OC_EVER |
drivers/misc/cardreader/rtsx_pcr.c +2 -2
index 99adc67bbf73..5345170fc57b 100644
@@ -1208,7 +1208,7 @@ void rtsx_pci_clear_ocpstat(struct rtsx_pcr *pcr)
 	}
 }
 
-int sd_power_off_card3v3(struct rtsx_pcr *pcr)
+int rtsx_sd_power_off_card3v3(struct rtsx_pcr *pcr)
 {
 	rtsx_pci_write_register(pcr, CARD_CLK_EN, SD_CLK_EN |
 		MS_CLK_EN | SD40_CLK_EN, 0);
@@ -1223,7 +1223,7 @@ int sd_power_off_card3v3(struct rtsx_pcr *pcr)
 	return 0;
 }
 
-int ms_power_off_card3v3(struct rtsx_pcr *pcr)
+int rtsx_ms_power_off_card3v3(struct rtsx_pcr *pcr)
 {
 	rtsx_pci_write_register(pcr, CARD_CLK_EN, SD_CLK_EN |
 		MS_CLK_EN | SD40_CLK_EN, 0);
drivers/misc/cardreader/rtsx_pcr.h +2 -2
index c544e35d0154..6ea1655db0bb 100644
@@ -107,7 +107,7 @@ void rtsx_pci_disable_ocp(struct rtsx_pcr *pcr);
 void rtsx_pci_enable_ocp(struct rtsx_pcr *pcr);
 int rtsx_pci_get_ocpstat(struct rtsx_pcr *pcr, u8 *val);
 void rtsx_pci_clear_ocpstat(struct rtsx_pcr *pcr);
-int sd_power_off_card3v3(struct rtsx_pcr *pcr);
-int ms_power_off_card3v3(struct rtsx_pcr *pcr);
+int rtsx_sd_power_off_card3v3(struct rtsx_pcr *pcr);
+int rtsx_ms_power_off_card3v3(struct rtsx_pcr *pcr);
 
 #endif
Signature · 5 lines
2.15.0

-- 
Cheers,
Stephen Rothwell
Acked-by Greg Kroah-Hartman
#1 lore raw
Quoted 27 lines · Stephen Rothwell

Hi Lee,

After merging the mfd tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/staging/rts5208/sd.o: In function `.sd_power_off_card3v3':
(.text+0x5760): multiple definition of .sd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.text+0x4630): first defined here drivers/staging/rts5208/sd.o:(.opd+0x378): multiple definition of sd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x4f8): first defined here drivers/staging/rts5208/ms.o: In function `.ms_power_off_card3v3':
(.text+0x5e70): multiple definition of .ms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.text+0x46e0): first defined here drivers/staging/rts5208/ms.o:(.opd+0x360): multiple definition of ms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x510): first defined here

Caused by commit

5da4e04ae480 ("misc: rtsx: Add support for RTS5260")

I added the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 4 Dec 2017 14:10:34 +1100
Subject: [PATCH] misc: rtsx: fix symbol clashes

Quoted 6 lines
---
 drivers/misc/cardreader/rts5260.c  | 4 ++--
 drivers/misc/cardreader/rtsx_pcr.c | 4 ++--
 drivers/misc/cardreader/rtsx_pcr.h | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
#2 lore raw
In reply to Stephen Rothwell
Quoted 21 lines · Stephen Rothwell

Hi Lee,

After merging the mfd tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/staging/rts5208/sd.o: In function `.sd_power_off_card3v3':
(.text+0x5760): multiple definition of .sd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.text+0x4630): first defined here drivers/staging/rts5208/sd.o:(.opd+0x378): multiple definition of sd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x4f8): first defined here drivers/staging/rts5208/ms.o: In function `.ms_power_off_card3v3':
(.text+0x5e70): multiple definition of .ms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.text+0x46e0): first defined here drivers/staging/rts5208/ms.o:(.opd+0x360): multiple definition of ms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x510): first defined here

Caused by commit

5da4e04ae480 ("misc: rtsx: Add support for RTS5260")

Quoted 7 lines

I added the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 4 Dec 2017 14:10:34 +1100
Subject: [PATCH] misc: rtsx: fix symbol clashes

Thanks Stephen.

Although I'm not sure how to apply this manually without scissors.

Might have to do so manually.

Quoted 58 lines
---
 drivers/misc/cardreader/rts5260.c  | 4 ++--
 drivers/misc/cardreader/rtsx_pcr.c | 4 ++--
 drivers/misc/cardreader/rtsx_pcr.h | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/misc/cardreader/rts5260.c +2 -2
index 3b308640282d..07cb93abf685 100644
@@ -426,9 +426,9 @@ void rts5260_process_ocp(struct rtsx_pcr *pcr)
 	rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat);
 	rts5260_get_ocpstat2(pcr, &pcr->ocp_stat2);
 	if (pcr->card_exist & SD_EXIST)
-		sd_power_off_card3v3(pcr);
+		rtsx_sd_power_off_card3v3(pcr);
 	else if (pcr->card_exist & MS_EXIST)
-		ms_power_off_card3v3(pcr);
+		rtsx_ms_power_off_card3v3(pcr);
 
 	if (!(pcr->card_exist & MS_EXIST) && !(pcr->card_exist & SD_EXIST)) {
 		if ((pcr->ocp_stat & (SD_OC_NOW | SD_OC_EVER |
drivers/misc/cardreader/rtsx_pcr.c +2 -2
index 99adc67bbf73..5345170fc57b 100644
@@ -1208,7 +1208,7 @@ void rtsx_pci_clear_ocpstat(struct rtsx_pcr *pcr)
 	}
 }
 
-int sd_power_off_card3v3(struct rtsx_pcr *pcr)
+int rtsx_sd_power_off_card3v3(struct rtsx_pcr *pcr)
 {
 	rtsx_pci_write_register(pcr, CARD_CLK_EN, SD_CLK_EN |
 		MS_CLK_EN | SD40_CLK_EN, 0);
@@ -1223,7 +1223,7 @@ int sd_power_off_card3v3(struct rtsx_pcr *pcr)
 	return 0;
 }
 
-int ms_power_off_card3v3(struct rtsx_pcr *pcr)
+int rtsx_ms_power_off_card3v3(struct rtsx_pcr *pcr)
 {
 	rtsx_pci_write_register(pcr, CARD_CLK_EN, SD_CLK_EN |
 		MS_CLK_EN | SD40_CLK_EN, 0);
drivers/misc/cardreader/rtsx_pcr.h +2 -2
index c544e35d0154..6ea1655db0bb 100644
@@ -107,7 +107,7 @@ void rtsx_pci_disable_ocp(struct rtsx_pcr *pcr);
 void rtsx_pci_enable_ocp(struct rtsx_pcr *pcr);
 int rtsx_pci_get_ocpstat(struct rtsx_pcr *pcr, u8 *val);
 void rtsx_pci_clear_ocpstat(struct rtsx_pcr *pcr);
-int sd_power_off_card3v3(struct rtsx_pcr *pcr);
-int ms_power_off_card3v3(struct rtsx_pcr *pcr);
+int rtsx_sd_power_off_card3v3(struct rtsx_pcr *pcr);
+int rtsx_ms_power_off_card3v3(struct rtsx_pcr *pcr);
 
 #endif
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#3 lore raw

Hi Lee,

Quoted 10 lines · On Mon, 4 Dec 2017 09:39:53 +0000 Lee Jones <[email protected]> wrote:
Quoted 8 lines

I added the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 4 Dec 2017 14:10:34 +1100
Subject: [PATCH] misc: rtsx: fix symbol clashes

Although I'm not sure how to apply this manually without scissors.

Just take everything from the From: line above to the end and give it to "git am". Yes, this may involve saving the email and editting it, sorry about that.

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw
Quoted 10 lines · Stephen Rothwell

Hi Lee,

Quoted 7 lines · On Mon, 4 Dec 2017 09:39:53 +0000 Lee Jones <[email protected]> wrote:
Quoted 7 lines

I added the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 4 Dec 2017 14:10:34 +1100
Subject: [PATCH] misc: rtsx: fix symbol clashes

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Although I'm not sure how to apply this manually without scissors.

Just take everything from the From: line above to the end and give it to "git am". Yes, this may involve saving the email and editting it, sorry about that.

If you use the scissors, I can ask Git to deal with all that for me.

We like #lazymaintenance. :D

Signature · 4 lines
Lee Jones
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#5 lore raw

Hi Lee,

Quoted 15 lines · On Wed, 6 Dec 2017 08:58:03 +0000 Lee Jones <[email protected]> wrote:
Quoted 12 lines · Stephen Rothwell
Quoted 10 lines · On Mon, 4 Dec 2017 09:39:53 +0000 Lee Jones <[email protected]> wrote:
Quoted 8 lines

I added the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 4 Dec 2017 14:10:34 +1100
Subject: [PATCH] misc: rtsx: fix symbol clashes

Although I'm not sure how to apply this manually without scissors.

Quoted 7 lines
Quoted 3 lines

Just take everything from the From: line above to the end and give it to "git am". Yes, this may involve saving the email and editting it, sorry about that.

If you use the scissors, I can ask Git to deal with all that for me.

We like #lazymaintenance. :D

So is this going to be applied to the mfd tree?

Signature · 2 lines
Cheers,
Stephen Rothwell
#6 lore raw
Quoted 22 lines · Stephen Rothwell

Hi Lee,

Quoted 19 lines · On Wed, 6 Dec 2017 08:58:03 +0000 Lee Jones <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell
Quoted 10 lines · On Mon, 4 Dec 2017 09:39:53 +0000 Lee Jones <[email protected]> wrote:
Quoted 8 lines

I added the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 4 Dec 2017 14:10:34 +1100
Subject: [PATCH] misc: rtsx: fix symbol clashes

Although I'm not sure how to apply this manually without scissors.

Just take everything from the From: line above to the end and give it to "git am". Yes, this may involve saving the email and editting it, sorry about that.

Quoted 5 lines
Quoted 3 lines

If you use the scissors, I can ask Git to deal with all that for me.

We like #lazymaintenance. :D

So is this going to be applied to the mfd tree?

Que?

Yes, it's in:

next-20171212 as 51bd7125f740

Also, the pull request for it went out over a week ago:

https://lkml.org/lkml/2017/12/4/142

What's missing? Do you still see an issue with the build?

Signature · 4 lines
Lee Jones
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#7 lore raw

Hi Lee,

Quoted 10 lines · On Tue, 12 Dec 2017 08:13:10 +0000 Lee Jones <[email protected]> wrote:

Yes, it's in:

next-20171212 as 51bd7125f740

Also, the pull request for it went out over a week ago:

https://lkml.org/lkml/2017/12/4/142

What's missing? Do you still see an issue with the build?

Sorry about that, my scripts have been applying the patch, but it automerges and doesn't fail even though it ends up applying nothing :-( And I didn't notice :-( :-(

Thanks. All good.

Signature · 2 lines
Cheers,
Stephen Rothwell