Skip to contentSkip to conversation

linux-next: libahci_platform has undefined symbol on sparc

DISCUSSION Yann Droneaud 3 participants 3 messages Jan 31, 2015

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

Hi,

I've seen another issue regarding commit c7d7ddee7e24eedde6149eefbcfbfbc7125b9ff0 ("ata: libahci: Allow using multiple regulators") from linux-next:
This commit modify ahci_platform_get_resources to use of_platform_device_create().

Unfortunately, it seems that of_platform_device_create() is not available on sparc (see CONFIG_OF_ADDRESS), so when built for sparc, the module libahci_platform.ko is rejected by modpost:

ERROR: "of_platform_device_create" [drivers/ata/libahci_platform.ko] undefined! ../scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[2]: *** [__modpost] Error 1
src/linux/Makefile:1120: recipe for target 'modules' failed

Regards.

Signature · 2 lines
Yann Droneaud
OPTEYA
#1 lore raw

Hi,

Quoted 6 lines · Yann Droneaud

Hi,

I've seen another issue regarding commit c7d7ddee7e24eedde6149eefbcfbfbc7125b9ff0 ("ata: libahci: Allow using multiple regulators") from linux-next:
This commit modify ahci_platform_get_resources to use of_platform_device_create().

Quoted 8 lines

Unfortunately, it seems that of_platform_device_create() is not available on sparc (see CONFIG_OF_ADDRESS), so when built for sparc, the module libahci_platform.ko is rejected by modpost:

ERROR: "of_platform_device_create" [drivers/ata/libahci_platform.ko] undefined! ../scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[2]: *** [__modpost] Error 1
src/linux/Makefile:1120: recipe for target 'modules' failed

Ah yes we had the same problem in simplefb, the example code for using of_platform_device came from simplefb, and already had the fix, but it look like Gregory did not include the bits fixing this in the ahci_platform code

Gregory, can you please submit a follow up patch fixing this? See simplefb.c for the easiest way to fix this.

Regards,

Hans

#2 lore raw

Hi Hans,

Quoted 18 lines · Hans de Goede

Hi,

Quoted 6 lines · Yann Droneaud

Hi,

I've seen another issue regarding commit c7d7ddee7e24eedde6149eefbcfbfbc7125b9ff0 ("ata: libahci: Allow using multiple regulators") from linux-next:
This commit modify ahci_platform_get_resources to use of_platform_device_create().

Quoted 8 lines

Unfortunately, it seems that of_platform_device_create() is not available on sparc (see CONFIG_OF_ADDRESS), so when built for sparc, the module libahci_platform.ko is rejected by modpost:

ERROR: "of_platform_device_create" [drivers/ata/libahci_platform.ko] undefined! ../scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[2]: *** [__modpost] Error 1
src/linux/Makefile:1120: recipe for target 'modules' failed

Quoted 6 lines

Ah yes we had the same problem in simplefb, the example code for using of_platform_device came from simplefb, and already had the fix, but it look like Gregory did not include the bits fixing this in the ahci_platform code

Gregory, can you please submit a follow up patch fixing this? See simplefb.c for the easiest way to fix this.

I could but Guenter already sent it :)

Gregory

Quoted 5 lines

Regards,

Hans

Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com