linux-next: build failure after merge of the mfd tree
Subsystems (2)
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
@@ -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
@@ -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
@@ -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
Greg KH
Acked-by Greg Kroah-HartmanQuoted 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 ofsd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x4f8): first defined heredrivers/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 ofms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x510): first defined hereCaused 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
Signed-off-by Stephen Rothwell <[email protected]>--- 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(-)
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 ofsd_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x4f8): first defined heredrivers/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 ofms_power_off_card3v3' drivers/misc/cardreader/rtsx_pcr.o:(.opd+0x510): first defined hereCaused 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 clashesSigned-off-by Stephen Rothwell <[email protected]>
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@@ -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@@ -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@@ -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
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 clashesSigned-off-by Stephen Rothwell <[email protected]>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
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
Signed-off-by Stephen Rothwell <[email protected]>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
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 clashesSigned-off-by Stephen Rothwell <[email protected]>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
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 clashesSigned-off-by Stephen Rothwell <[email protected]>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
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
51bd7125f740Also, 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