Skip to contentSkip to conversation

Build error in -next due to ion patches when building sparc64:allmodconfig

PATCH In review Guenter Roeck 3 participants 4 messages Sep 13, 2016 – Sep 14, 2016 Staging

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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
index 8a54ddc..9410554 100644
@@ -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
Reviewed-by on v1 1/1
#2 lore raw

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_create which has dependencies on OF_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_ADDRESS

---
Based on next-20160914

---
 drivers/staging/android/ion/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/android/ion/Kconfig +1 -2
index 8a54ddc..9410554 100644
@@ -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

author Tested-by on v1 1/1
#3 lore raw

Re: [PATCH] staging: android: ion: Make ION_OF depend on OF_ADDRESS

In reply to Laura Abbott
Quoted 10 lines · Laura Abbott

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'

Quoted 4 lines

Add a dependency on OF_ADDRESS

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
index 8a54ddc..9410554 100644
@@ -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