* linux-next: build failure after merge of the driver-core tree
@ 2019-09-18 17:09 Mark Brown
2019-09-18 18:52 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2019-09-18 17:09 UTC (permalink / raw)
To: Greg KH, Suzuki K Poulose, Wolfram Sang, Mika Westerberg
Cc: linux-i2c, Linux Next Mailing List, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]
Hi all,
After merging the driver-core tree, today's linux-next build
for arm64 allmodconfig failed like this:
/home/broonie/next/next/drivers/i2c/i2c-core-acpi.c: In function 'i2c_acpi_find_adapter_by_handle':
/home/broonie/next/next/drivers/i2c/i2c-core-acpi.c:352:10: error: 'i2c_acpi_find_match_adapter' undeclared (first use in this function); did you mean 'i2c_acpi_find_bus_speed'?
i2c_acpi_find_match_adapter);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
i2c_acpi_find_bus_speed
/home/broonie/next/next/drivers/i2c/i2c-core-acpi.c:352:10: note: each undeclared identifier is reported only once for each function it appears in
Caused by commit
644bf600889554210 ("i2c: Revert incorrect conversion to use generic helper")
In yesterday's -next that function existed but it appears to have been
removed in Linus' tree as part of the merge:
4feaab05dc1eda3 ("Merge tag 'leds-for-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds")
by the commit
00500147cbd3fc5 ("drivers: Introduce device lookup variants by ACPI_COMPANION device")
(ie, the commit that the failing commit was trying to revert.) I
suspect this is confusion caused by things going into Linus' tree in
different orders. I've fixed this up by re-adding the function.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: linux-next: build failure after merge of the driver-core tree 2019-09-18 17:09 linux-next: build failure after merge of the driver-core tree Mark Brown @ 2019-09-18 18:52 ` Greg KH 2019-09-18 19:03 ` Linus Torvalds 0 siblings, 1 reply; 6+ messages in thread From: Greg KH @ 2019-09-18 18:52 UTC (permalink / raw) To: Linus Torvalds, Mark Brown Cc: Suzuki K Poulose, Wolfram Sang, Mika Westerberg, linux-i2c, Linux Next Mailing List, Linux Kernel Mailing List On Wed, Sep 18, 2019 at 06:09:52PM +0100, Mark Brown wrote: > Hi all, > > After merging the driver-core tree, today's linux-next build > for arm64 allmodconfig failed like this: > > /home/broonie/next/next/drivers/i2c/i2c-core-acpi.c: In function 'i2c_acpi_find_adapter_by_handle': > /home/broonie/next/next/drivers/i2c/i2c-core-acpi.c:352:10: error: 'i2c_acpi_find_match_adapter' undeclared (first use in this function); did you mean 'i2c_acpi_find_bus_speed'? > i2c_acpi_find_match_adapter); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > i2c_acpi_find_bus_speed > /home/broonie/next/next/drivers/i2c/i2c-core-acpi.c:352:10: note: each undeclared identifier is reported only once for each function it appears in > > Caused by commit > > 644bf600889554210 ("i2c: Revert incorrect conversion to use generic helper") > > In yesterday's -next that function existed but it appears to have been > removed in Linus' tree as part of the merge: > > 4feaab05dc1eda3 ("Merge tag 'leds-for-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds") > > by the commit > > 00500147cbd3fc5 ("drivers: Introduce device lookup variants by ACPI_COMPANION device") > > (ie, the commit that the failing commit was trying to revert.) I > suspect this is confusion caused by things going into Linus' tree in > different orders. I've fixed this up by re-adding the function. Wait, I thought Linus said this fixup was now resolved. What went wrong? Linus, should I submit a fix for this? thanks, greg k-h ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree 2019-09-18 18:52 ` Greg KH @ 2019-09-18 19:03 ` Linus Torvalds 2019-09-18 19:07 ` Greg KH 2019-09-18 21:55 ` Mark Brown 0 siblings, 2 replies; 6+ messages in thread From: Linus Torvalds @ 2019-09-18 19:03 UTC (permalink / raw) To: Greg KH Cc: Mark Brown, Suzuki K Poulose, Wolfram Sang, Mika Westerberg, linux-i2c, Linux Next Mailing List, Linux Kernel Mailing List On Wed, Sep 18, 2019 at 11:53 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > On Wed, Sep 18, 2019 at 06:09:52PM +0100, Mark Brown wrote: > > > > After merging the driver-core tree, today's linux-next build > > for arm64 allmodconfig failed like this: > > Wait, I thought Linus said this fixup was now resolved. What went > wrong? I think this is purely a linux-next build failure. I do full allmodconfig builds between each merge I do, and what happened is that as part of the LED merge, I removed the no-longer-used 'i2c_acpi_find_match_adapter()' to resolve that build warning. Then linux-next presumably merged my tree with the driver-core tree, and that re-instated the use of i2c_acpi_find_match_adapter() - which was now gone. But when *I* merged the driver-core tree, I did the merge fixup correctly to actually re-instate not only the use, but also re-instate the removed function that now had a use again. > Linus, should I submit a fix for this? My tree should be fine, and I really think this is just a temporary linux-next effect from the above. I think linux-next only handled the actual syntactic conflicts, not the semantic conflict of "function had been removed to avoid build error from previous merge, and needed to be brought back" Knock wood. Linus ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree 2019-09-18 19:03 ` Linus Torvalds @ 2019-09-18 19:07 ` Greg KH 2019-09-18 20:56 ` Suzuki K Poulose 2019-09-18 21:55 ` Mark Brown 1 sibling, 1 reply; 6+ messages in thread From: Greg KH @ 2019-09-18 19:07 UTC (permalink / raw) To: Linus Torvalds Cc: Mark Brown, Suzuki K Poulose, Wolfram Sang, Mika Westerberg, linux-i2c, Linux Next Mailing List, Linux Kernel Mailing List On Wed, Sep 18, 2019 at 12:03:17PM -0700, Linus Torvalds wrote: > On Wed, Sep 18, 2019 at 11:53 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > > > On Wed, Sep 18, 2019 at 06:09:52PM +0100, Mark Brown wrote: > > > > > > After merging the driver-core tree, today's linux-next build > > > for arm64 allmodconfig failed like this: > > > > Wait, I thought Linus said this fixup was now resolved. What went > > wrong? > > I think this is purely a linux-next build failure. > > I do full allmodconfig builds between each merge I do, and what > happened is that as part of the LED merge, I removed the > no-longer-used 'i2c_acpi_find_match_adapter()' to resolve that build > warning. > > Then linux-next presumably merged my tree with the driver-core tree, > and that re-instated the use of i2c_acpi_find_match_adapter() - which > was now gone. > > But when *I* merged the driver-core tree, I did the merge fixup > correctly to actually re-instate not only the use, but also re-instate > the removed function that now had a use again. > > > Linus, should I submit a fix for this? > > My tree should be fine, and I really think this is just a temporary > linux-next effect from the above. I think linux-next only handled the > actual syntactic conflicts, not the semantic conflict of "function had > been removed to avoid build error from previous merge, and needed to > be brought back" > > Knock wood. I looked at your merge of the driver core tree, and see that the "missing" function is now back. And I did a test build here and all works for me, so I think this is ok, thanks for the fixup. greg k-h ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree 2019-09-18 19:07 ` Greg KH @ 2019-09-18 20:56 ` Suzuki K Poulose 0 siblings, 0 replies; 6+ messages in thread From: Suzuki K Poulose @ 2019-09-18 20:56 UTC (permalink / raw) To: gregkh, torvalds Cc: broonie, wsa, mika.westerberg, linux-i2c, linux-next, linux-kernel On 09/18/2019 08:07 PM, Greg KH wrote: > On Wed, Sep 18, 2019 at 12:03:17PM -0700, Linus Torvalds wrote: >> On Wed, Sep 18, 2019 at 11:53 AM Greg KH <gregkh@linuxfoundation.org> wrote: >>> >>> On Wed, Sep 18, 2019 at 06:09:52PM +0100, Mark Brown wrote: >>>> >>>> After merging the driver-core tree, today's linux-next build >>>> for arm64 allmodconfig failed like this: >>> >>> Wait, I thought Linus said this fixup was now resolved. What went >>> wrong? >> >> I think this is purely a linux-next build failure. >> >> I do full allmodconfig builds between each merge I do, and what >> happened is that as part of the LED merge, I removed the >> no-longer-used 'i2c_acpi_find_match_adapter()' to resolve that build >> warning. >> >> Then linux-next presumably merged my tree with the driver-core tree, >> and that re-instated the use of i2c_acpi_find_match_adapter() - which >> was now gone. >> >> But when *I* merged the driver-core tree, I did the merge fixup >> correctly to actually re-instate not only the use, but also re-instate >> the removed function that now had a use again. >> >>> Linus, should I submit a fix for this? >> >> My tree should be fine, and I really think this is just a temporary >> linux-next effect from the above. I think linux-next only handled the >> actual syntactic conflicts, not the semantic conflict of "function had >> been removed to avoid build error from previous merge, and needed to >> be brought back" >> >> Knock wood. > > I looked at your merge of the driver core tree, and see that the > "missing" function is now back. > > And I did a test build here and all works for me, so I think this is ok, > thanks for the fixup. > > greg k-h > Thanks for the fixup ! Apologies for the inconvenience Suzuki ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: linux-next: build failure after merge of the driver-core tree 2019-09-18 19:03 ` Linus Torvalds 2019-09-18 19:07 ` Greg KH @ 2019-09-18 21:55 ` Mark Brown 1 sibling, 0 replies; 6+ messages in thread From: Mark Brown @ 2019-09-18 21:55 UTC (permalink / raw) To: Linus Torvalds Cc: Greg KH, Suzuki K Poulose, Wolfram Sang, Mika Westerberg, linux-i2c, Linux Next Mailing List, Linux Kernel Mailing List [-- Attachment #1: Type: text/plain, Size: 1819 bytes --] On Wed, Sep 18, 2019 at 12:03:17PM -0700, Linus Torvalds wrote: > On Wed, Sep 18, 2019 at 11:53 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > On Wed, Sep 18, 2019 at 06:09:52PM +0100, Mark Brown wrote: > > > After merging the driver-core tree, today's linux-next build > > > for arm64 allmodconfig failed like this: > > Wait, I thought Linus said this fixup was now resolved. What went > > wrong? > I think this is purely a linux-next build failure. > I do full allmodconfig builds between each merge I do, and what > happened is that as part of the LED merge, I removed the > no-longer-used 'i2c_acpi_find_match_adapter()' to resolve that build > warning. > Then linux-next presumably merged my tree with the driver-core tree, > and that re-instated the use of i2c_acpi_find_match_adapter() - which > was now gone. > But when *I* merged the driver-core tree, I did the merge fixup > correctly to actually re-instate not only the use, but also re-instate > the removed function that now had a use again. Yes, that's exactly what happened - it's purely an issue when Greg's tree is merged automatically, I was reporting the same thing you fixed up. If the initial build of your tree had been broken I'd have been complaining much more loudy and much earlier! > > Linus, should I submit a fix for this? > My tree should be fine, and I really think this is just a temporary > linux-next effect from the above. I think linux-next only handled the > actual syntactic conflicts, not the semantic conflict of "function had > been removed to avoid build error from previous merge, and needed to > be brought back" Right, git just sees the code moving about and got confused. Since you've merged both trees now tomorrow's -next won't do anything for driver-core and the automation will handle everything fine. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-09-18 21:55 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-09-18 17:09 linux-next: build failure after merge of the driver-core tree Mark Brown 2019-09-18 18:52 ` Greg KH 2019-09-18 19:03 ` Linus Torvalds 2019-09-18 19:07 ` Greg KH 2019-09-18 20:56 ` Suzuki K Poulose 2019-09-18 21:55 ` Mark Brown
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).