Skip to contentSkip to conversation

drivers: omap2: Kconfig: make FB_OMAP2_DSS_INIT depend on OF

PATCH In review Anders Roxell 4 participants 7 messages Apr 20, 2018 – May 4, 2018

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

PATCH 1/1 drivers: omap2: Kconfig: make FB_OMAP2_DSS_INIT depend on OF

Commit 7378f1149884 ("media: omap2: omapfb: allow building it with
COMPILE_TEST") broke compilation without CONFIG_OF selected.
CC drivers/video/fbdev/core/fbmem.o
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c: In function ‘omapdss_update_prop’:
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c:68:2: error: implicit declaration of function ‘of_update_property’; did you mean ‘of_get_property’? [-Werror=implicit-function-declaration]
of_update_property(node, prop);
^~~~~~~~~~~~~~~~~~
of_get_property
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o' failed
make[7]: *** [drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o] Error 1
scripts/Makefile.build:559: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss' failed
make[6]: *** [drivers/video/fbdev/omap2/omapfb/dss] Error 2
make[6]: *** Waiting for unfinished jobs....

Add OF dependency in order to make all configurations work again.

of_update_property() has no inline stub, and that that could be added as an alternative.

---
 drivers/video/fbdev/omap2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap2/Kconfig +1 -1
index 82008699d253..4de381f2452e 100644
@@ -1,4 +1,4 @@
-if ARCH_OMAP2PLUS || COMPILE_TEST
+if OF && (ARCH_OMAP2PLUS || COMPILE_TEST)
 
 source "drivers/video/fbdev/omap2/omapfb/Kconfig"
 
Signature · 1 line
2.17.0
Acked-by Tested-by on v1 1/1
#1 lore raw
Quoted 31 lines · Anders Roxell

Commit 7378f1149884 ("media: omap2: omapfb: allow building it with
COMPILE_TEST") broke compilation without CONFIG_OF selected.
CC drivers/video/fbdev/core/fbmem.o
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c: In function ‘omapdss_update_prop’:
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c:68:2: error: implicit declaration of function ‘of_update_property’; did you mean ‘of_get_property’? [-Werror=implicit-function-declaration]
of_update_property(node, prop);
^~~~~~~~~~~~~~~~~~
of_get_property
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o' failed
make[7]: *** [drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o] Error 1
scripts/Makefile.build:559: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss' failed
make[6]: *** [drivers/video/fbdev/omap2/omapfb/dss] Error 2
make[6]: *** Waiting for unfinished jobs....

Add OF dependency in order to make all configurations work again.

of_update_property() has no inline stub, and that that could be added as an alternative.

---
 drivers/video/fbdev/omap2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap2/Kconfig +0 -0
index 82008699d253..4de381f2452e 100644

drivers/video/fbdev/omap2/Kconfig line 4

Quoted 5 lines
drivers/video/fbdev/omap2/Kconfig +1 -1
@@ -1,4 +1,4 @@
-if ARCH_OMAP2PLUS || COMPILE_TEST
+if OF && (ARCH_OMAP2PLUS || COMPILE_TEST)
 
 source "drivers/video/fbdev/omap2/omapfb/Kconfig"
 

Hi,

This patch certainly fixes the build errors that I have been seeing in linux-next for several days now, so:

OTOH, I would rather see the Kconfig dependencies all expressed in drivers/video/fbdev/omap2/omapfb/Kconfig instead of them being split between 2 Kconfig files.

thanks,

Signature · 1 line
~Randy
#2 lore raw
Quoted 40 lines · Randy Dunlap
Quoted 31 lines · Anders Roxell

Commit 7378f1149884 ("media: omap2: omapfb: allow building it with
COMPILE_TEST") broke compilation without CONFIG_OF selected.
CC drivers/video/fbdev/core/fbmem.o
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c: In function ‘omapdss_update_prop’:
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c:68:2: error: implicit declaration of function ‘of_update_property’; did you mean ‘of_get_property’? [-Werror=implicit-function-declaration]
of_update_property(node, prop);
^~~~~~~~~~~~~~~~~~
of_get_property
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o' failed
make[7]: *** [drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o] Error 1
scripts/Makefile.build:559: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss' failed
make[6]: *** [drivers/video/fbdev/omap2/omapfb/dss] Error 2
make[6]: *** Waiting for unfinished jobs....

Add OF dependency in order to make all configurations work again.

of_update_property() has no inline stub, and that that could be added as an alternative.

---
 drivers/video/fbdev/omap2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap2/Kconfig +0 -0
index 82008699d253..4de381f2452e 100644

drivers/video/fbdev/omap2/Kconfig line 4

Quoted 5 lines
drivers/video/fbdev/omap2/Kconfig +1 -1
@@ -1,4 +1,4 @@
-if ARCH_OMAP2PLUS || COMPILE_TEST
+if OF && (ARCH_OMAP2PLUS || COMPILE_TEST)
 
 source "drivers/video/fbdev/omap2/omapfb/Kconfig"
 

Hi,

Quoted 5 lines

This patch certainly fixes the build errors that I have been seeing in linux-next for several days now, so:

Thanks.

Since there has been no follow up from Mauro on this ([1]) I guess that the best thing I can do is simply merging both patches to fbdev tree..

[1] https://www.spinics.net/lists/linux-media/msg132583.html

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

#3 lore raw

Em Fri, 04 May 2018 12:48:46 +0200
Bartlomiej Zolnierkiewicz <[email protected]> escreveu:

Quoted 47 lines · Randy Dunlap
Quoted 40 lines · Anders Roxell
Quoted 31 lines

Commit 7378f1149884 ("media: omap2: omapfb: allow building it with
COMPILE_TEST") broke compilation without CONFIG_OF selected.
CC drivers/video/fbdev/core/fbmem.o
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c: In function ‘omapdss_update_prop’:
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c:68:2: error: implicit declaration of function ‘of_update_property’; did you mean ‘of_get_property’? [-Werror=implicit-function-declaration]
of_update_property(node, prop);
^~~~~~~~~~~~~~~~~~
of_get_property
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o' failed
make[7]: *** [drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o] Error 1
scripts/Makefile.build:559: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss' failed
make[6]: *** [drivers/video/fbdev/omap2/omapfb/dss] Error 2
make[6]: *** Waiting for unfinished jobs....

Add OF dependency in order to make all configurations work again.

of_update_property() has no inline stub, and that that could be added as an alternative.

---
 drivers/video/fbdev/omap2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap2/Kconfig +0 -0
index 82008699d253..4de381f2452e 100644

drivers/video/fbdev/omap2/Kconfig line 4

Quoted 5 lines
drivers/video/fbdev/omap2/Kconfig +1 -1
@@ -1,4 +1,4 @@
-if ARCH_OMAP2PLUS || COMPILE_TEST
+if OF && (ARCH_OMAP2PLUS || COMPILE_TEST)
 
 source "drivers/video/fbdev/omap2/omapfb/Kconfig"
 

Hi,

Quoted 5 lines

This patch certainly fixes the build errors that I have been seeing in linux-next for several days now, so:

Quoted 7 lines

Thanks.

Since there has been no follow up from Mauro on this ([1]) I guess that the best thing I can do is simply merging both patches to fbdev tree..

[1] https://www.spinics.net/lists/linux-media/msg132583.html

Sorry, it seems I missed it. If you didn't merge them yet, I'll merge it on my tree today, if you think it would be best to have it together with the patch that enabled FB_OMAP builds with COMPILE_TEST.

If you prefer, instead, feel free to merge via your tree, as this is FB stuff anyway.

If you need/want:

Thanks,
Mauro

#4 lore raw
Quoted 56 lines · Mauro Carvalho Chehab

Em Fri, 04 May 2018 12:48:46 +0200
Bartlomiej Zolnierkiewicz <[email protected]> escreveu:

Quoted 53 lines · Randy Dunlap
Quoted 40 lines · Anders Roxell
Quoted 31 lines

Commit 7378f1149884 ("media: omap2: omapfb: allow building it with
COMPILE_TEST") broke compilation without CONFIG_OF selected.
CC drivers/video/fbdev/core/fbmem.o
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c: In function ‘omapdss_update_prop’:
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c:68:2: error: implicit declaration of function ‘of_update_property’; did you mean ‘of_get_property’? [-Werror=implicit-function-declaration]
of_update_property(node, prop);
^~~~~~~~~~~~~~~~~~
of_get_property
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o' failed
make[7]: *** [drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o] Error 1
scripts/Makefile.build:559: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss' failed
make[6]: *** [drivers/video/fbdev/omap2/omapfb/dss] Error 2
make[6]: *** Waiting for unfinished jobs....

Add OF dependency in order to make all configurations work again.

of_update_property() has no inline stub, and that that could be added as an alternative.

---
 drivers/video/fbdev/omap2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap2/Kconfig +0 -0
index 82008699d253..4de381f2452e 100644

drivers/video/fbdev/omap2/Kconfig line 4

Quoted 5 lines
drivers/video/fbdev/omap2/Kconfig +1 -1
@@ -1,4 +1,4 @@
-if ARCH_OMAP2PLUS || COMPILE_TEST
+if OF && (ARCH_OMAP2PLUS || COMPILE_TEST)
 
 source "drivers/video/fbdev/omap2/omapfb/Kconfig"
 

Hi,

Quoted 5 lines

This patch certainly fixes the build errors that I have been seeing in linux-next for several days now, so:

Thanks.

Since there has been no follow up from Mauro on this ([1]) I guess that the best thing I can do is simply merging both patches to fbdev tree..

Quoted 6 lines
Quoted 1 line

[1] https://www.spinics.net/lists/linux-media/msg132583.html

Sorry, it seems I missed it. If you didn't merge them yet, I'll merge it on my tree today, if you think it would be best to have it together with the patch that enabled FB_OMAP builds with COMPILE_TEST.

This would be best indeed, you can add my ACK:

Quoted 6 lines

If you prefer, instead, feel free to merge via your tree, as this is FB stuff anyway.

If you need/want:

BTW Could you please also comment on / ACK my patch in this thread:

https://www.spinics.net/lists/linux-media/msg132733.html

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

#5 lore raw

Em Fri, 04 May 2018 13:05:17 +0200
Bartlomiej Zolnierkiewicz <[email protected]> escreveu:

Quoted 48 lines · Mauro Carvalho Chehab
Quoted 47 lines

Em Fri, 04 May 2018 12:48:46 +0200
Bartlomiej Zolnierkiewicz <[email protected]> escreveu:

Quoted 44 lines · Randy Dunlap
Quoted 43 lines · Anders Roxell
Quoted 31 lines

Commit 7378f1149884 ("media: omap2: omapfb: allow building it with
COMPILE_TEST") broke compilation without CONFIG_OF selected.
CC drivers/video/fbdev/core/fbmem.o
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c: In function ‘omapdss_update_prop’:
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c:68:2: error: implicit declaration of function ‘of_update_property’; did you mean ‘of_get_property’? [-Werror=implicit-function-declaration]
of_update_property(node, prop);
^~~~~~~~~~~~~~~~~~
of_get_property
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o' failed
make[7]: *** [drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o] Error 1
scripts/Makefile.build:559: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss' failed
make[6]: *** [drivers/video/fbdev/omap2/omapfb/dss] Error 2
make[6]: *** Waiting for unfinished jobs....

Add OF dependency in order to make all configurations work again.

of_update_property() has no inline stub, and that that could be added as an alternative.

---
 drivers/video/fbdev/omap2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap2/Kconfig +0 -0
index 82008699d253..4de381f2452e 100644

drivers/video/fbdev/omap2/Kconfig line 4

Quoted 5 lines
drivers/video/fbdev/omap2/Kconfig +1 -1
@@ -1,4 +1,4 @@
-if ARCH_OMAP2PLUS || COMPILE_TEST
+if OF && (ARCH_OMAP2PLUS || COMPILE_TEST)
 
 source "drivers/video/fbdev/omap2/omapfb/Kconfig"
 

Hi,

This patch certainly fixes the build errors that I have been seeing in linux-next for several days now, so:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

Thanks.

Since there has been no follow up from Mauro on this ([1]) I guess that the best thing I can do is simply merging both patches to fbdev tree..

When you're saying about "both" patches, you're referring to the original one plus this fix, right?

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

[1] https://www.spinics.net/lists/linux-media/msg132583.html

Sorry, it seems I missed it. If you didn't merge them yet, I'll merge it on my tree today, if you think it would be best to have it together with the patch that enabled FB_OMAP builds with COMPILE_TEST.

I know why I missed... I was not c/c at the original patch. Well, I received it at my LKML inbox, but nobody reads all LKML emails those days.

Quoted 4 lines

This would be best indeed, you can add my ACK:

Committed.

Quoted 11 lines
Quoted 7 lines

If you prefer, instead, feel free to merge via your tree, as this is FB stuff anyway.

If you need/want:

BTW Could you please also comment on / ACK my patch in this thread:

https://www.spinics.net/lists/linux-media/msg132733.html

Sure I will look on it in a few. I'm not rushing with that 7 patch series, as the most important thing for my workflow is to build all media drivers on i386/x86_64. Building on other archs is just a plus, as I intend some day to also incrementally do test building on arm as I receive/merge patches, but I don't do it yet.

Thanks,
Mauro

#6 lore raw
Quoted 54 lines · Mauro Carvalho Chehab

Em Fri, 04 May 2018 13:05:17 +0200
Bartlomiej Zolnierkiewicz <[email protected]> escreveu:

Quoted 51 lines · Mauro Carvalho Chehab
Quoted 50 lines

Em Fri, 04 May 2018 12:48:46 +0200
Bartlomiej Zolnierkiewicz <[email protected]> escreveu:

Quoted 47 lines · Randy Dunlap
Quoted 45 lines · Anders Roxell
Quoted 31 lines

Commit 7378f1149884 ("media: omap2: omapfb: allow building it with
COMPILE_TEST") broke compilation without CONFIG_OF selected.
CC drivers/video/fbdev/core/fbmem.o
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c: In function ‘omapdss_update_prop’:
drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c:68:2: error: implicit declaration of function ‘of_update_property’; did you mean ‘of_get_property’? [-Werror=implicit-function-declaration]
of_update_property(node, prop);
^~~~~~~~~~~~~~~~~~
of_get_property
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o' failed
make[7]: *** [drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.o] Error 1
scripts/Makefile.build:559: recipe for target 'drivers/video/fbdev/omap2/omapfb/dss' failed
make[6]: *** [drivers/video/fbdev/omap2/omapfb/dss] Error 2
make[6]: *** Waiting for unfinished jobs....

Add OF dependency in order to make all configurations work again.

of_update_property() has no inline stub, and that that could be added as an alternative.

---
 drivers/video/fbdev/omap2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap2/Kconfig +0 -0
index 82008699d253..4de381f2452e 100644

drivers/video/fbdev/omap2/Kconfig line 4

Quoted 5 lines
drivers/video/fbdev/omap2/Kconfig +1 -1
@@ -1,4 +1,4 @@
-if ARCH_OMAP2PLUS || COMPILE_TEST
+if OF && (ARCH_OMAP2PLUS || COMPILE_TEST)
 
 source "drivers/video/fbdev/omap2/omapfb/Kconfig"
 

Hi,

This patch certainly fixes the build errors that I have been seeing in linux-next for several days now, so:

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Thanks.

Since there has been no follow up from Mauro on this ([1]) I guess that the best thing I can do is simply merging both patches to fbdev tree..

When you're saying about "both" patches, you're referring to the original one plus this fix, right?

Right.

Quoted 13 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

[1] https://www.spinics.net/lists/linux-media/msg132583.html

Sorry, it seems I missed it. If you didn't merge them yet, I'll merge it on my tree today, if you think it would be best to have it together with the patch that enabled FB_OMAP builds with COMPILE_TEST.

I know why I missed... I was not c/c at the original patch. Well, I received it at my LKML inbox, but nobody reads all LKML emails those days.

Quoted 1 line
Quoted 5 lines
Quoted 3 lines

This would be best indeed, you can add my ACK:

Committed.

Thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics