Build error in -next due to ion patches when building sparc64:allmodconfig
Hi Laura,
I see the following build error in -next.
Building sparc64:allmodconfig ... failed
--------------
Error log:
...drivers/built-in.o: In function `ion_parse_dt':
(.text+0x11aa2c): undefined reference to `of_platform_device_create'
of_platform_device_create() depends on CONFIG_OF_ADDRESS, which is not supported on sparc. Maybe add "depends on OF_ADDRESS" to the Kconfig file ?
Thanks,
Guenter
PATCH 1/1 staging: android: ion: Make ION_OF depend on OF_ADDRESS
The Ion platform code uses of_platform_device_create which has dependencies on OF_ADDRESS. Depending on OF is not sufficient
Building sparc64:allmodconfig ... failed
--------------
Error log:
...drivers/built-in.o: In function `ion_parse_dt':
(.text+0x11aa2c): undefined reference to `of_platform_device_create'
Add a dependency on OF_ADDRESS
---
Based on next-20160914
--- drivers/staging/android/ion/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/android/ion/Kconfig +1 -1
@@ -43,7 +43,7 @@ source "drivers/staging/android/ion/hisilicon/Kconfig" config ION_OF bool "Devicetree support for Ion" - depends on ION && OF + depends on ION && OF_ADDRESS help Provides base support for defining Ion heaps in devicetree and setting them up. Also includes functions for platforms
Signature · 1 line
2.7.4
Re: [PATCH] staging: android: ion: Make ION_OF depend on OF_ADDRESS
Hi Laura,
Quoted 3 lines · Laura Abbott
The Ion platform code uses
of_platform_device_createwhich has dependencies onOF_ADDRESS. Depending on OF is not sufficient
Thanks for the patch; looks good to me.
Please feel free to apply my
Best,
Sumit.
Quoted 33 lines
Building sparc64:allmodconfig ... failed
--------------
Error log:
...drivers/built-in.o: In function `ion_parse_dt':
(.text+0x11aa2c): undefined reference to `of_platform_device_create'Add a dependency on
OF_ADDRESSReported-by Guenter Roeck <[email protected]>Signed-off-by Laura Abbott <[email protected]>---
Based on next-20160914--- drivers/staging/android/ion/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/android/ion/Kconfig +1
-2@@ -43,7 +43,7 @@ source "drivers/staging/android/ion/hisilicon/Kconfig" config ION_OF bool "Devicetree support for Ion" - depends on ION && OF + depends on ION && OF_ADDRESS help Provides base support for defining Ion heaps in devicetree and setting them up. Also includes functions for platforms --2.7.4
Re: [PATCH] staging: android: ion: Make ION_OF depend on OF_ADDRESS
In reply to Laura AbbottQuoted 10 lines · Laura Abbott
The Ion platform code uses
of_platform_device_createwhich has dependencies onOF_ADDRESS. Depending on OF is not sufficientBuilding sparc64:allmodconfig ... failed
--------------
Error log:
...drivers/built-in.o: In function `ion_parse_dt':
(.text+0x11aa2c): undefined reference to `of_platform_device_create'
Quoted 4 lines
Add a dependency on
OF_ADDRESSReported-by Guenter Roeck <[email protected]>Signed-off-by Laura Abbott <[email protected]>
Quoted 22 lines
---
Based on next-20160914--- drivers/staging/android/ion/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/android/ion/Kconfig +1
-1@@ -43,7 +43,7 @@ source "drivers/staging/android/ion/hisilicon/Kconfig" config ION_OF bool "Devicetree support for Ion" - depends on ION && OF + depends on ION && OF_ADDRESS help Provides base support for defining Ion heaps in devicetree and setting them up. Also includes functions for platformsSignature · 1 line
2.7.4