Skip to contentSkip to conversation

linux-next: build failure after merge of the driver-core tree

DISCUSSION Mark Brown 4 participants 6 messages Sep 18, 2019

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

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.

#1 lore raw
Quoted 21 lines · Mark Brown

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")

Quoted 7 lines

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

#2 lore raw
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

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.

Quoted 1 line

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

#3 lore raw
Quoted 27 lines · Linus Torvalds
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

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.

Quoted 1 line

Linus, should I submit a fix for this?

Quoted 7 lines

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

#4 lore raw
Quoted 36 lines · Greg KH
Quoted 27 lines · Linus Torvalds
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

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.

Quoted 1 line

Linus, should I submit a fix for this?

Quoted 7 lines

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.

Quoted 8 lines

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

author maintainer
#5 lore raw
In reply to Linus Torvalds
Quoted 16 lines · Linus Torvalds
Quoted 7 lines · Greg KH
Quoted 2 lines · Mark Brown

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.

Quoted 7 lines

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!

Quoted 7 lines
Quoted 1 line

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.